What mail service are you trying to use?
Jan 7, 2023
8
Level 1
SSL error on sending mail via laravel smtp
i have an error while sending mails via laravel smtp mail & laravel ignores MAIL_ENCRYPTION value even i have checked .env values
MAIL_ENCRYPTION=tls
MAIL_ENCRYPTION=null
MAIL_ENCRYPTION=""
MAIL_ENCRYPTION=
MAIL_ENCRYPTION=ssl
MAIL_ENCRYPTION=none
... and more
and tried every mail.php values
'encryption' => env('MAIL_ENCRYPTION'),
'encryption' => env('MAIL_ENCRYPTION','tls'),
'encryption' => "",
'encryption' => "null",
'encryption' => null,
... and more
i have tried using
'stream' => [
'ssl' => [
'allow_self_signed' => true,
'verify_peer' => false,
'verify_peer_name' => false,
],
]
or
'verify_peer' => false,
when iam using 465 ports this error appears whatever MAIL_ENCRYPTION value
Connection could not be established with host "ssl://my-domain-here.com:465": stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:ssl3_get_record:wrong version number
and when iam using 25,587 values this error appears whatever MAIL_ENCRYPTION value
Unable to connect with STARTTLS: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error
i have tried smtp online tools like https://dnschecker.org/smtp-test-tool.php , it works with (No Secure Connection and 25,465 ports)
and tried PHPMailer ONLY when using ```$mail->SMTPAutoTLS = false;$mail->SMTPSecure = false;``` , iam using aaPanel , is there any hit to FORCE DISABLE ANY SSL or encryptionPlease or to participate in this conversation.