Rob Lister 68a0dbed64
[8.x] Add option to set sendmail path. Fix default (#5741)
* Add option to set sendmail path. Fix default

Testing this in an application, it would seem that sendmail -bs is the wrong option for this case?

What Laravel appears to do is pipe an RFC-2822 formatted message on STDIN and requires the sendmail emulation to deal with it,
rather than -bs which initiates an SMTP session.

if Exim is the default MTA then -t would seem to be the correct option.

If you have an alternative installed instead of sendmail/exim, then there's no way to set the path, so I added MAIL_SENDMAIL_PATH
so you can do, e.g.:

MAIL_SENDMAIL_PATH="/usr/bin/msmtp -t --tls=off --from=${MAIL_FROM_ADDRESS} --auto-from=off"

msmtp doesn't support -bs at all

* Update mail.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2021-12-06 08:24:41 -06:00
..
2021-11-09 09:56:25 -06:00
2021-08-11 13:44:34 -05:00
wip
2021-05-14 10:09:46 -05:00
2021-11-15 15:10:04 -06:00
2019-08-14 09:19:31 -05:00
2020-03-06 07:57:18 -06:00