首页 >后端开发 >php教程 >PHP send email configuration in XAMPP

PHP send email configuration in XAMPP

WBOY
WBOY原创
2016-07-29 09:05:251005浏览

A few XAMPP configuration points to send the email from PHP by using gmail account,
1, \xampp\sendmail\sendmail.ini
smtp_server=smtp.gmail.com
smtp_port=587
auth_username=huilin.xiong@gmail.com (your gmail account)
auth_password=your passowrd
2, \xampp\php\php.ini
sendmail_path = "\"D:\PHP\xampp\sendmail\sendmail.exe\" -t"
3, gmail account sign-in & security setting, 
set Allow less secure apps: ON
If this is not set, the sending email will fail.

以上就介绍了PHP send email configuration in XAMPP,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn