【发布时间】:2015-01-05 06:42:20
【问题描述】:
我已经按照其他人的指示配置了我的 php.ini 和 sendmail 设置,但是我仍然无法使用 PHP 中的 mail() 函数从本地主机发送任何邮件。
这些是我的 php.ini [邮件功能] 设置
[mail function]
; XAMPP: Comment out this if you want to work with an SMTP Server like Mercury
; SMTP = localhost
; smtp_port = 25
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
;sendmail_path="C:\xampp\mailtodisk\mailtodisk.exe"
and this is my sendmail.ini settings
smtp_server=smtp.gmail.com
; smtp port (normally 25)
smtp_port=587
smtp_ssl=tls
error_logfile=error.log
auth_username= joel.paul69@gmail.com
auth_password= examplepassword
我的操作系统是 windows 8。我是 PHP 或任何服务器端编程的新手。
如果你们都可以帮助我,也许会发送正确的设置等,这将非常有帮助。谢谢大家 :D :)
【问题讨论】:
标签: php apache xampp localhost