如何用PHP发电子邮件 (2)

 1. 配置好php.ini 的SMTP

SMTP = smtp.163.com
smtp_port = 25
sendmail_path ="C:/xampp/sendmail/sendmail.exe -t"

 2. 在WINDOWG下,需要安装xampp ,利用其EMAIL功能来发信,

安装XAMPP,然后修改 C:/xampp/sendmail 下的sendmail.ini
smtp_server=smtp.163.com
smtp_port=25
auth_username=yoursemailname
auth_password=yourpassword

重启APACHE后,就可以使用了。可以利用 phpmailer 类

你可能感兴趣的:(如何用PHP发电子邮件 (2))