首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >PHPMailer无法发送

问PHPMailer无法发送
EN

Stack Overflow用户
提问于 2013-08-21 11:27:25
回答 1查看 202关注 0票数 0

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

错误:

代码语言:javascript
复制
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.
EN

回答 1

Stack Overflow用户

发布于 2013-08-21 11:38:18

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

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

如果不起作用,你可以试一下

代码语言:javascript
复制
// if you're using SSL
$mail->SMTPSecure = 'ssl';
// OR use TLS
$mail->SMTPSecure = 'tls';
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18348386

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档