【发布时间】:2018-02-27 22:18:07
【问题描述】:
2017-09-19 08:09:53 SMTP ERROR: Failed to connect to server: (0)
SMTP connect() failed.
https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
无法发送邮件。邮件程序错误:SMTP 连接()失败。
https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting.
以上是我得到的错误。
【问题讨论】:
-
人们可能需要更多信息。也许你正在使用的配置
-
port = 465 , $mail->isHTML(true) 在 php.ini 中我配置了所有内容并取消了所有需要的注释。
-
第 1115 行的 C:\xampp\htdocs\gautam\vendor\phpmailer\phpmailer\src\SMTP.php 中的最大执行时间超过 30 秒。这是我现在遇到的错误,我的超时时间是设置为 300。
标签: phpmailer