We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

SMTP - disable SSL verification check

How Do I?

maestro7879's avatar
maestro7879
3 posts
3 weeks ago
maestro7879's avatar maestro7879

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

       
Neil Evans's avatar
Neil Evans
1,403 posts
about 3 weeks ago
Neil Evans's avatar Neil Evans

Hey, Quick and simple - Visit Settings -> Outgoing email. In there change Connection type from SSL to Unencrypted. You will probably have to use different port number too. 587 is usually the SSL, TLS one, unencrypted I would suggest 25 or 465

N

       
maestro7879's avatar
maestro7879
3 posts
about 3 weeks ago
maestro7879's avatar maestro7879

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 ) );

       
Neil Evans's avatar
Neil Evans
1,403 posts
about 3 weeks ago
Neil Evans's avatar Neil Evans

Sorry I am confused. Are you saying EE is limiting your choices in the control panel? Or that the email provider is only permitting connections via 587 and StartTLS?

I am messing around with TLS versions now in the legacy email code, so might be able to have a look! N

       
maestro7879's avatar
maestro7879
3 posts
about 3 weeks ago
maestro7879's avatar maestro7879

Correct. My only option is to use 587 and STARTTLS.

       
Neil Evans's avatar
Neil Evans
1,403 posts
2 weeks ago
Neil Evans's avatar Neil Evans

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

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.