I have a live project in my GoDaddy server. I am trying to send an email after submitting a form and for that I have configured .env
and mail.php
file. But mail is not send and more over that no error file shown in log
file.
.env
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD='app_specific_password'
MAIL_ENCRYPTION=tls
controller
Mail::send('mail', $emailDataArray, function($message) use ($emailDataArray)
{
$message->to('[email protected]')->subject('New Online Estimate');
$message->from('[email protected]');
});
Mail is not send and no error shown in log
file.
Anybody Help Please ? I am in serious problem