PHP - Phpmailer: stream_socket_enable_crypto(): SSL Operation

Asked

Viewed 866 times

0

I am trying to send an email, I am using the Phpmailer library, and then the following error appears:

stream_socket_enable_crypto(): SSL Operation failed with code 1. Openssl Error messages: error:1408F10B:SSL routines:SSL3_GET_RECORD:Wrong version number

I can’t seem to solve this problem, some light at the end of the tunnel?

See the print below on the debug done by Phpmailer:

inserir a descrição da imagem aqui

Here is the code used:

inserir a descrição da imagem aqui

  • Take a look in that suggestion and see if it works. But I can’t say if it’s a good one. But for test purposes it might already be something.

  • @Sam already tried this solution, but the same error continues. I’ll leave a Print in the Question to see if it clarifies the question further.

2 answers

0

0

For those who are having the same problem, try with ssl:

$mail->Port = 465;
$mail->SMTPSecure = 'ssl';

Browser other questions tagged

You are not signed in. Login or sign up in order to post.