我正在尝试使用 xampplite 1.7.7 版发送电子邮件。
我用以下内容更改了我的 PHP.ini 文件:
[mail function]
; For Win32 only.
; http://php.net/smtp
;SMTP = localhost
; http://php.net/smtp-port
;smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = postmaster@localhost
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = "\"\xampp portable\sendmail\sendmail.exe\" -t"
我还下载了最新版本的 sendmail 应用程序并对其进行了以下更改,当然用我的电子邮件信息替换了它。
smtp_server=smtp.gmail.com
smtp_port=465
smtp_ssl=auto
auth_username=myemail@gmail.com
auth_password=mypassword
force_sender=myemail@gmail.com
hostname=smtp.gmail.com
我仍然无法发送进行上述更改的电子邮件,如果有人可以提供帮助,请告诉我谢谢。