skip to Main Content

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

2

Answers


  1. Chosen as BEST ANSWER

    There is no problem with the code, problem is in the Webmail. Consult with the server customer center and Now it's solved.


  2. Did you activate third party apps on gmail? if no then, go this link , turn on ‘Change account access for less secure apps‘ option

    It may be fix your problem.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search