Wednesday, November 4, 2015

Configure SMTP on Xampp


Step 1 – Open php.ini
Add below lines under [mail function]
smtp_port=587
sendmail_from =youremail@domain.com
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"


Step 2 – Open sendmail.ini
Add below lines
smtp_server=smtp.gmail.com
smtp_port=587
smtp_ssl=tls
error_logfile=error.log
pop3_server=
pop3_username=
pop3_password=
force_recipient=
hostname=
auth_username=youremail@domain.com
auth_password=Shang!@#$%
force_sender= youremail@domain.com

Step 3 –
Login  to youremail@domain.com
Enter below url for allow access to less secure apps ( turn on )–

Step 4 -
Open below url and click on continue

Step 5 - Restart xampp server
Step 6 - Wait for 10 -15 min and try to send mail. It takes 10-15 min to enable new settings.

Note : Please do account verification is google ask you to do in-between.

No comments:

Post a Comment