SMTP - Can't send mail
Permalink
Hi,
Since somedays I can't receive emails from my forms.
I didn't change anything in setting, but when I want to test mail settings I've got:
I don't know why. I'm using External SMTP Server, Ubuntu 16.04 and OpenSSL version is 1.0.2g .
I used this script:
to check TLS. I have 1.2 version.
What could be wrong ?
Since somedays I can't receive emails from my forms.
I didn't change anything in setting, but when I want to test mail settings I've got:
The following error was found while trying to send the test email:<br />stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:<br /> error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version
I don't know why. I'm using External SMTP Server, Ubuntu 16.04 and OpenSSL version is 1.0.2g .
I used this script:
$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://www.howsmyssl.com/a/check"); curl_setopt($ch, CURLOPT_SSLVERSION, 6); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); $tlsVer = json_decode($response, true); echo "<h1>Your TSL version is: <u>" . ( $tlsVer['tls_version'] ? $tlsVer['tls_version'] : 'no TLS support' ) . "</u></h1>";
to check TLS. I have 1.2 version.
What could be wrong ?
I've updated system to Ubuntu 18.04, update PHP to 7.2 and OpenSSL to 1.1.1 . Now looks fine.