我终于意识到如何通过PHP / Localhost发送邮件,问题是当我的计算机停止工作并且不得不使用另一台计算机时,它不再起作用...我更改了sendmail.ini和php的配置.ini,它可以进行第一次尝试,但是之后就开始失败。
错误文件在邮件发送失败的那一刻没有显示任何内容。
我尝试过更改文件中的其他字段,但无济于事。
sendmail.ini
smtp_server=smtp.gmail.com
smtp_port=587
smtp_ssl=TLS
error_logfile=error.log
debug_logfile=debug.log
In the auth files the mail and the password are correct
In the force_sender the mail is correct
php.ini
I only changed sendmail_path = "\"C:\xampp\sendmail\sendmail.exe" -t"
我不太确定为什么它停止工作。我不知道这是Google,这台新计算机还是其他问题。 我只希望它再次工作。 任何帮助都会有所帮助。 预先感谢...