When i try to send mail using Laravel but error occurring
like this
"Connection to "process /usr/sbin/sendmail -bs -i" has been closed unexpectedly."
this is my env
`MAIL_MAILER=sendmail
MAIL_HOST=smtp.googlemail.com
MAIL_PORT=567
MAIL_USERNAME=*******.com
MAIL_PASSWORD="******"
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="********.com"
MAIL_FROM_NAME="${APP_NAME}"`
..
2
Answers
This might be the solution.
On https://myaccount.google.com/apppasswords you can create an app password.
It will be nice if you could test your email locally using mailtrap.io first. If everything is ok on your local, make sure you gmail account could send SMTP emails.
https://help.accredible.com/smtp-setup-in-gmail-inbox
Also change you config to