我已经配置我的php.ini和sendmail设置为其他人的指示,但我仍然无法通过使用PHP中的mail()函数从本地主机发送任何邮件。PHP本地主机邮件没有得到使用xampp发送
这些都是我的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= [email protected]
auth_password= examplepassword
我的操作系统是Windows 8。我是新来的PHP或任何服务器端编程。
这将是非常有益的,如果大家能帮助我,也许发送正确的设置等。感谢球员:d :)