SMTP error with PHP Mailer

https://vegan-things.org

(please specify the website or account you are asking about)

SMTP connect() Error

(please share the FULL error message you see)
2020-08-07 10:40:58 SERVER -> CLIENT: 220 2.0.0 SMTP server ready
2020-08-07 10:40:58 Connection failed. Error #2: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed [/home/vol6_5/epizy.com/epiz_25602795/htdocs/PHPMailer/class.smtp.php line 374]
SMTP Error: Could not connect to SMTP host.
2020-08-07 10:40:58 CLIENT -> SERVER: QUIT
2020-08-07 10:40:58 SMTP -> get_lines(): $data is β€œβ€
2020-08-07 10:40:58 SMTP -> get_lines(): $str is β€œβ€
2020-08-07 10:40:58 SERVER -> CLIENT:
2020-08-07 10:40:58 SMTP ERROR: QUIT command failed:
2020-08-07 10:40:58 Connection: closed

Other Information

This had been previously working for months and suddenly this issue has reoccured. The smtp setting are correct and code has not changed.

$mail->Host = β€˜smtp.live.com’; // Which SMTP server to use.
$mail->Port = 587; // Which port to use, 587 is the default port for TLS security.
$mail->SMTPSecure = β€˜tls’; // Which security method to use. TLS is most secure.
$mail->SMTPAuth = true; // Whether you need to login. This is almost always required.
$mail->Username = β€œ****************"; // Your Gmail address.
$mail->Password = "
”; // Your Gmail login password or App Specific Password.

Read here:

4 Likes

I also Get the Same issue…I have two external domain with 2 free hosting accounts.
One the PHPmailer works fine. but other Domain hosting it gives me this error

2020-08-08 18:13:13 SERVER -> CLIENT: 220 perfora.net (mreueus002) Nemesis ESMTP Service ready

2020-08-08 18:13:13 CLIENT -> SERVER: EHLO www.optiesaan.nl

2020-08-08 18:13:13 SERVER -> CLIENT: 250-perfora.net Hello www.optiesaan.nl [185.27.134.183]250-8BITMIME250-AUTH LOGIN PLAIN250-SIZE 140000000250 STARTTLS

2020-08-08 18:13:13 CLIENT -> SERVER: STARTTLS

2020-08-08 18:13:13 SERVER -> CLIENT: 220 OK

SMTP Error: Could not connect to SMTP host.

2020-08-08 18:13:14 CLIENT -> SERVER: QUIT

2020-08-08 18:13:14

2020-08-08 18:13:14

SMTP connect() failed.
There has been a mail error SMTP connect() failed.
Can some one help me

I assume that is because you are using STARTTLS, using the OpenSSL system, Hence why it does not work, Technical.Legendz shared an article above

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.