【发布时间】:2014-04-17 21:40:44
【问题描述】:
我在 Windows 7 上使用 XAMPP,但无法使用 php 发送邮件
php.ini 文件部分如下:
SMTP = smtp.gmail.com
smtp_port = 25
sendmail_from = hima***ivast***@gmail.com
sendmail_path = "C:\xampp\sendmail\sendmail.exe -t"
mail.add_x_header = Off
sendmail.ini 文件部分如下:
smtp_server=smtp.gmail.com
smtp_port=25
error_logfile=error.log
debug_logfile=debug.log
auth_username=hima***ivast***@gmail.com
auth_password=************
force_sender=hima***ivast***@gmail.com
请帮我找出错误。
【问题讨论】:
标签: php email windows-7 xampp sendmail.exe