Have you already tried to clear the config? php artisan config:clear
You can also try to use no value in the ENV file instead of null
MAIL_ENCRYPTION=
I need Laravel to send emails using plain smtp on port 25 - I know it's unsecure but I currently have a problem with the mailserver ssl certificate. Why laravel still want to use STARTTLS?
Thanks
Here is what I did:
.env
MAIL_MAILER=smtp
MAIL_HOST=mail.example.com
MAIL_PORT=25
[email protected]
MAIL_ENCRYPTION=null
check config/mail.php
'smtp' => [
'transport' => 'smtp',
'url' => env('MAIL_URL'),
'host' => env('MAIL_HOST', 'mail.example.com'),
'port' => env('MAIL_PORT', 25),
'encryption' => env('MAIL_ENCRYPTION', 'null'),
],
Error:
Symfony \ Component \ Mailer \ Exception \ TransportException
PHP 8.2.15
laravel 10.44.0
Unable to connect with STARTTLS: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:0A000086:SSL routines::certificate verify failed
Please or to participate in this conversation.