I maintain an InvoiceNinja instance and an error was reported when sending mail.
Check the logs in storage/logs/laravel.log
I see there is an error:
Mailer Problem: scheme is not supported; supported schemes for mailer "smtp" are: "smtp", "smtps"
First, I checked my .env
and saw MAIL_MAILER=smtps
, so I dug into config/mail.php
to have a look.
There was no scheme
in the mailers.smtp, so I added 'scheme' => 'smtps',
to it:
'mailers' => [ 'smtp' => [ 'scheme' => 'smtps', 'transport' => 'smtps',
I cleared the config cache using php artisan clear:config
.
Now invoices are sending.