Playback starts YouTube’s embedded player (privacy-enhanced mode).
How to send email using localhost xampp from gmail or yahoo (with source code) | LMS part - 55(a)
ChannelElectrical & Computer Engineering ProjectDescription from the creator
How to send email using localhost xampp from gmail or yahoo (with source code) | Library Management System part - 55(a)
In this video, I've shown you how to configure xampp to send email from localhost using Gmail/ yahoo
📢📢📢 If you install the latest version of xampp make sure you copy your current htdocs folder and export your database before uninstalling. Otherwise, they will be deleted.
Code:
$to="[email protected]";
$subject="test";
$msg="hello! 2nd test.";
$from="From: [email protected]";
if (mail($to, $subject, $msg, $from)) {
echo "email sent.";}
else{echo "not sent.";}
Configuration: php.ini file:-
SMTP=smtp.gmail.com
smtp_port=587 / 465
sendmail_from = [email protected]
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
Note:( it can be different if you've installed xampp somewhere else. )
sendmail.ini file:-
smtp_server=smtp.gmail.com
smtp_port=587 or 465 //use any of them
error_logfile=error.log
debug_logfile=debug.log
[email protected]
auth_password=Your-Gmail-Password
In this video, I've shown you how to configure xampp to send email from localhost using Gmail/ yahoo
📢📢📢 If you install the latest version of xampp make sure you copy your current htdocs folder and export your database before uninstalling. Otherwise, they will be deleted.
Code:
$to="[email protected]";
$subject="test";
$msg="hello! 2nd test.";
$from="From: [email protected]";
if (mail($to, $subject, $msg, $from)) {
echo "email sent.";}
else{echo "not sent.";}
Configuration: php.ini file:-
SMTP=smtp.gmail.com
smtp_port=587 / 465
sendmail_from = [email protected]
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
Note:( it can be different if you've installed xampp somewhere else. )
sendmail.ini file:-
smtp_server=smtp.gmail.com
smtp_port=587 or 465 //use any of them
error_logfile=error.log
debug_logfile=debug.log
[email protected]
auth_password=Your-Gmail-Password
About this tutorial
Electrical & Computer Engineering Project published this 10:52 video tutorial on October 9, 2020. It has been watched 6,824 times on YouTube.
- Category
- Education
- Duration
- 10:52
- Published
- October 9, 2020
- Views
- 6,824
- Likes
- 50
Tags
Share
This tutorial in other languages
- FRComment envoyer un courriel en utilisant localhost xampp de gmail ou yahoo (avec le code source) | partie LMS - 55 (a)
- ESCómo enviar correo electrónico utilizando xampp localhost de Gmail o Yahoo (con código fuente) | LMS parte - 55 (a)
- PTComo enviar e-mail usando localhost xampp do Gmail ou Yahoo (com código fonte) | LMS parte - 55 (a)
- ITCome inviare e-mail utilizzando localhost XAMPP da Gmail o Yahoo (con il codice sorgente) | LMS parte - 55 (a)
- DEWie senden E-Mail localhost xampp von gmail oder Yahoo verwenden (mit Quellcode) | LMS Teil - 55 (a)
- NLHoe kan ik e-mail te sturen met behulp van localhost xampp vanuit Gmail of Yahoo (met broncode) | LMS part - 55 (a)
- RUКак отправить электронную почту, используя локальный XAMPP из Gmail или Yahoo (с исходным кодом) | LMS часть - 55 (а)
- PLJak wysłać e-mail przy użyciu localhost xampp z gmail lub yahoo (z kodem źródłowym) | LMS część - 55 (a)
- JA(ソースコード付き)、GmailやヤフーからローカルホストXAMPPを使用して電子メールを送信する方法| LMS部 - 55(A)
- ARكيفية إرسال البريد الإلكتروني باستخدام المضيف المحلي XAMPP من جوجل أو ياهو (مع شفرة المصدر) | LMS جزء - 55 (أ)
- HIकैसे जीमेल या याहू (स्रोत कोड के साथ) से स्थानीय होस्ट XAMPP का उपयोग कर ईमेल भेजने के लिए | LMS हिस्सा - 55 (क)
- IDCara mengirim email menggunakan localhost xampp dari gmail atau yahoo (dengan kode sumber) | LMS bagian - 55 (a)