Hello - I’m receiving the below. It is possible to disable the SSL check for the SMTP address ?
stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed ee/legacy/libraries/Email.php, line 1707
I wish it were that easy. The only option is 587 and STARTTLS. In other scenarios I was able to add something like this in the code and bypass the certificate check.
$mail->SMTPOptions = array( ‘ssl’ => array( ‘verify_peer’ => false, ‘verify_peer_name’ => false, ‘allow_self_signed’ => true ) );
I am going to be honest here - it all screams like a bad idea! You are basically saying I want to connect to a secure email server, but be insecure, with publicly submitted user/business information. So… my advice… do not do this. Do it properly, or use another mailserver.
That aside, I doubt EE would have built in options for a secure connection to be made insecure. So you will have to do it manually, in PHP: https://www.php.net/manual/en/context.ssl.php
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.