Reputation: 6023
Ob my Laravel setup, mail was always working until I upgraded the framework to 5.5
(from 5.4). Now it always fail at the following:
Do note the following:
mail()
function works if called directlymail
however it still goes here to sendmail
(you can vardump the $command and it says /usr/sbin/sendmail -bs
) Here is the .env
for mail:
MAIL_DRIVER=mail
MAIL_HOST=localhost
MAIL_PORT=25
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
So does anyone knows how to solve this? It only starred in laravel 5.5
Thanks a lot
Upvotes: 4
Views: 7758
Reputation: 46
If you do not wish to use the smtp driver
, you can use 'sendmail'
instead of 'mail'
. Just make sure proc_open()
is enabled on your server though.
Upvotes: 0
Reputation: 6023
Found the reason and hence had to find an alternate solution.
[Reason]: Swiftmailer no longer supports mail
transport
(See here)
https://github.com/swiftmailer/swiftmailer/issues/866
https://github.com/octobercms/october/issues/3256
[Solution]:
Use smtp
instead of mail
.
Upvotes: 8