I'm trying to send my first email using L5.1 and Gmail account. I have 2-steps verification and I'm using specific app password in my .env file. When I try to send the email with:
$result =Mail::send('emails.contact', $request->all(), function($msg)
{
$msg->subject = 'Mail from Contact Page';
$msg->to = 'contact@fakedomain.com';
}); dd($result);
Then $result is always zero and no mail is sent (I checked the spam folder 1000 times). I also tried using mailtrap.io with credentials supplied and still the result is the same in browser and also using Tinker. Any thoughts?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire