我在使用this tutorial在本地主机xampp中发送邮件时遇到问题。我只是研究了这同一主题在How to configure XAMPP to send mail from localhost?在xampp localhost中发送php邮件不起作用
我已经试过这两个链接,但邮件功能不工作,而不是每次这个邮件功能被存储为XAMPP/mailoutput文件夹中的记事本文件。每当我尝试发送一封邮件时,这些邮件都会作为记事本文件存储在xampp文件夹内的邮件输出文件夹中。
我不知道问题出在哪里。我在xampp中更改了我的php.ini和sendmail.ini文件。
的php.ini如下:
SMTP=smtp.gmail.com
smtp_port=587
sendmail_from = [email protected]
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
sendmail.ini如下:
smtp_server=smtp.gmail.com
smtp_port=587
error_logfile=error.log
debug_logfile=debug.log
[email protected]
auth_password=my-gmail-password
[email protected]
任何人可以帮助我解决这个问题?
http://stackoverflow.com/questions/19132171/send-email-from-localhost-running-xammp-in-php-using-gmail-mail-server –
即使这一个不工作....我刚刚尝试 –