HDTutorial
EN

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)

6,824 views October 9, 2020 10:52

Watch on YouTube
ChannelElectrical & Computer Engineering Project

Description 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

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