A
A
Anton Plawkevich2019-10-18 16:57:26
Email
Anton Plawkevich, 2019-10-18 16:57:26

Sending via smtp?

Hello, the problem is this, the site was hanging on the hosting, we decided to transfer it to another, and immediately stopped sending mail.
Tried to shove wp mail smtp plugins and hands wp-config.php | functuins.php but without success, it throws this error:

Versions:
WordPress: 5.2.4
WordPress MS: No
PHP: 7.1.26
WP Mail SMTP: 1.6.2

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

Server:
OpenSSL: OpenSSL 1.0.1f 6 Jan 2014
Apache.mod_security: No
SMTP Debug:
2019-10-18 13:37:36 Connection: opening to ssl://smtp.yandex.ru:25, timeout=300, options=array (
)
2019-10-18 13:37:36 Connection: Failed to connect to server. Error number 2. "Error notice: stream_socket_client(): unable to connect to ssl://smtp.yandex.ru:25 (Connection refused)
2019-10-18 13:37:36 SMTP ERROR: Failed to connect to server: Connection refused (111)
2019-10-18 13:37:36 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

I would be grateful for advice, can anyone come across such a problem.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Chernykh, 2019-10-18
@sashkets

ssl://smtp.yandex.ru:25 (Connection refused)

ssl port 465
or enable tls

A
akelsey, 2019-10-18
@akelsey

port 25 is forbidden on your site by the host.
If from the ssh session from the host: telnet smtp.yandex.ru 25
and the result is connection refused - 100% confirmation.
You need to write not to Yandex, but to the hoster.

S
Sergey Bro, 2019-10-18
@ssenj

Does the hoster have the mail function enabled, through which letters go?
Some turn off.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question