I have a Laravel 7.0 project, when I try to send email to mailtrap it gives me following error.
Swift_TransportException Unsupported sendmail command flags []. Must be one of "-bs" or "-t" but can include additional flags.
I have following in my .env file
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=MY_USERNAME
MAIL_PASSWORD=MY_PASSWORD
MAIL_FROM_ADDRESS=from@example.com
MAIL_FROM_NAME=Example
MAIL_ENCRYPTION=tls
Also tried to clear config cache, but it does not work.
php artisan config:cache