How to send mail in PHP from localhost using XAMPP server with Source Code in 2021|Part 2

Описание к видео How to send mail in PHP from localhost using XAMPP server with Source Code in 2021|Part 2

Part 1 -   • How to send mail in PHP from localhos...  


Hello and Welcome, In this Vedio I will Show You How To Send Mail From Localhost XAMPP in PHP to Gmail account in 2021 in Hindi. How to configure XAMPP to send mail from localhost using PHP?To configure the XAMPP server to send mail from the localhost we have to make changes to two files sendmail.ini and php.ini.
To get the code for free Click Here
➡️ PHP MAIL CODE: https://github.com/ravisingh2811/Send...
#send_mail #localhost #php #gmail #xampp #configure


Check Out My Previous Vedio

Animated Login Form in HTML CSS =    • Animated Login Form in HTML CSS | Hin...  

How to Encrypt and Decrypt Password in PHP =    • How to Encrypt and Decrypt Password i...  

Hide And Show Button In JavaScript

Guys, Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network TimeLines.

Do Follow my github Link and social media Link To connect with me
Github Link = https://github.com/ravisingh2811
Instagram Link =   / mr.ravisingh28  
Facebook = https://www.facebook.com/profile.php?...


Follow the below steps for the same.

Steps to Send Mail From Localhost XAMPP Using Gmail:

Open XAMPP Installation Directory.


Go to C:\xampp\php and open the php.ini file.
Find [mail function] by pressing ctrl + f.
Search and pass the following values:
SMTP=smtp.gmail.com
smtp_port=587
sendmail_from = [email protected]
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"


Now, go to C:\xampp\sendmail and open the sendmail.ini file.

Find [sendmail] by pressing ctrl + f.
Search and pass the following values
smtp_server=smtp.gmail.com
smtp_port=587 or 25 //use any of them
error_logfile=error.log
debug_logfile=debug.log
[email protected]
auth_password=Your-Gmail-Password
[email protected](optional)


**Note: If you are getting a warning message then Please configure “Less secure apps” settings as shown below. Sometimes without turning on the 'less secure apps' is the main reason the user didn't receive the mail.

= Turning on 'less secure apps' settings as mailbox user

Go to your (Google Account).
On the left navigation panel, click Security.
On the bottom of the page, in the Less secure app access panel, click Turn on access.
If you don't see this setting, your administrator might have turned off less secure app account access (check the instruction above).
Click the Save button.

Комментарии

Информация по комментариям в разработке