I'm about to deploy a website in the next 8h and Gmail just stop accepting PHPmailer sign in to my account. At first it worked, for a bunch of hours while testing. Then, it just stopped working.. I already allowed all the allow less secure apps to sign in from gmail but it just still don't allow phpmailer to sign in. I want to jump off a cliff!
Here is the same code that worked brilliant a few hours ago:
$mail->SMTPDebug = 0;
$mail->isSMTP();
$mail->Host = "smtp.gmail.com";
$mail->SMTPAuth = true;
$mail->Username = 'myemail@gmail.com';
$mail->Password = 'password';
$mail->SMTPSecure = 'ssl';
$mail->Port = 587;
Then for some reason gmail just started blocking the sign in attemps. I hope I could get some help here, I already looked for over an hour and still got nothing.
Thanks!