SMTP OpenSSL Error messages

Now i have updated to 2025.2 when trying to sign in with 2fa email i am getting Connection could not be established with host “ssl://xxxx.xxxxx.com:587”: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:0A00010B:SSL routines::wrong version number

I know it is not a phpmaker issue. just not sure how to fix.

thanks

You may google the error message “stream_socket_client(): SSL operation failed with code 1” for more information. If you use any of the supported provider (e.g. Amazon SES), make sure you use the corresponding composer package, not by simple SMTP.

I dont see anything when search this to do with the error 0A00010B
Email sending was working fine. But since update I am getting the following error
My server has a let encrypts cert but the DNS is local 192.168.1.2
Is there anyway to get it working?
I have tried enabling use PhpMailer but still get the same errow msg

I can send emails ok locally via script using phpmailer

But I needed the following options adding

$mail->SMTPOptions = array(
                'ssl' => array(
                                'verify_peer' => false,
                                'verify_peer_name' => false,
                                'allow_self_signed' => true
                )
);

thanks

If you enable Use PHPMailer, emails will be sent by PHPMailer. From the source code, by default your settings will be set if Config("SMTP.OPTIONS") is empty.

thanks, how do i go about adding options the phpmailer?

 'ssl' => array(
                                'verify_peer' => false,
                                'verify_peer_name' => false,
                                'allow_self_signed' => true
                )

when i enable Use PHPMailer the error message does not change

It should be already set by default. If the error message remains, that’s not related to those settings.

verify_peer is set,
but i dont see verify_peer_name or allow_self_signed
within definitions.php

 Config("SMTP.SERVER_PORT"),
        [
            "secure" => Config("SMTP.SECURE_OPTION"),
            "options" => Config("SMTP.OPTIONS"),
            "debug" => IsDebug(),
            "verify_peer" => false,
        ]

within config.production.php

"OPTIONS" => [], // Other options

Many thanks

They are set in PhpMailerTransportFactory if “verify_peer” is false.

Anyone else having issue sending emails?
I can send emails fine using phpmailer via command line so i know the smtp service is ok.
Just will not send in v2025.2
tired with both phpmailer enabled and disabled.
always get the same message.
“ssl://smtp.xxxxxxx.xxxxxx:587”: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:0A00010B:SSL routines::wrong version number