2021-01-19 12:49:01 Connection: opening to smtp.gmail.com:587, timeout=300, options=array ( ) 2021-01-19 12:49:01 Connection: opened 2021-01-19 12:49:01 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP d23sm3929812ioc.2 - gsmtp 2021-01-19 12:49:01 CLIENT -> SERVER: EHLO alphonsoholidays.com 2021-01-19 12:49:01 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [198.38.82.140] 250-SIZE 35882577 250-8BITMIME 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250 SMTPUTF8 2021-01-19 12:49:01 CLIENT -> SERVER: STARTTLS 2021-01-19 12:49:01 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS 2021-01-19 12:49:01 CLIENT -> SERVER: EHLO alphonsoholidays.com 2021-01-19 12:49:01 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [198.38.82.140] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250 SMTPUTF8 2021-01-19 12:49:01 CLIENT -> SERVER: AUTH LOGIN 2021-01-19 12:49:01 SERVER -> CLIENT: 334 VXNlcm5hbWU6 2021-01-19 12:49:01 CLIENT -> SERVER: cHJhbmlsam9zaGkxM0BnbWFpbC5jb20= 2021-01-19 12:49:01 SERVER -> CLIENT: 334 UGFzc3dvcmQ6 2021-01-19 12:49:01 CLIENT -> SERVER: OTg1MDE0MDA5MA== 2021-01-19 12:49:01 SERVER -> CLIENT: 535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 https://support.google.com/mail/?p=BadCredentials d23sm3929812ioc.2 - gsmtp 2021-01-19 12:49:01 SMTP ERROR: Password command failed: 535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 https://support.google.com/mail/?p=BadCredentials d23sm3929812ioc.2 - gsmtp 2021-01-19 12:49:01 SMTP Error: Could not authenticate. 2021-01-19 12:49:01 CLIENT -> SERVER: QUIT 2021-01-19 12:49:01 SERVER -> CLIENT: 221 2.0.0 closing connection d23sm3929812ioc.2 - gsmtp 2021-01-19 12:49:01 Connection: closed 2021-01-19 12:49:01 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting Fail