0

无法发送邮件(我extension=php_openssl.dll为电子邮件启用了 //),我的 php 版本是 5.4.12

错误:

SMTP -> ERROR: Failed to connect to server: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060)
SMTP Connect() failed.
Mailer Error: SMTP Connect() failed.
4

1 回答 1

0

确保启用 SSL 支持,因此只需启用extension=php_openssl.dll

你也可以尝试使用$mail->SMTPDebug = 1;

如果它不起作用,您可以尝试

// if you're using SSL
$mail->SMTPSecure = 'ssl';
// OR use TLS
$mail->SMTPSecure = 'tls';
于 2013-08-21T03:38:18.303 回答