在WordPress

时间:2018-04-03 12:07:13

标签: php wordpress smtp phpmailer

版本:

WordPress: 4.8.5
WordPress MS: No
PHP: 5.4.45
WP Mail SMTP: 1.2.5

PARAMS:

Mailer: smtp
Constants: No
ErrorInfo: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Host: smtp.yandex.ru
Port: 465
SMTPSecure: ssl
SMTPAutoTLS: bool(false)
SMTPAuth: bool(true)

服务器:

OpenSSL: Yes
Apache.mod_security: No
SMTP Debug:
2018-04-03 10:39:37 Connection: opening to ssl://smtp.yandex.ru:465, timeout=300, options=array (
)
2018-04-03 10:44:37 Connection: Failed to connect to server. Error number 2. "Error notice: stream_socket_client(): unable to connect to ssl://smtp.yandex.ru:465 (Connection timed out)
2018-04-03 10:44:37 SMTP ERROR: Failed to connect to server: Connection timed out (110)
2018-04-03 10:44:37 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

1 个答案:

答案 0 :(得分:0)

很可能是你的webhost阻止了连接(除非你自己是hositng)因为许多主机不允许使用fopen()。你有权访问你的php.ini文件吗?