【发布时间】:2016-05-28 08:59:58
【问题描述】:
我已经安装了新版本的 xampp 并尝试在我的本地机器上发送电子邮件,但 php 将其返回给我:
mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
问题是,在我之前的版本中。 Xampp 已将每封电子邮件“发送”到 xampp/mailoutput 文件夹。 我的 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 = me@example.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
;sendmail_path =
【问题讨论】: