First time poster, long time learner (sort of).
I've been back and forth trying to get my Moodle instance (3.4.2) to send out authentication emails to new students. I couldn't do it through my hosting company as they seem to be rather strict about it all. I got G Suites and an paying for something that will allow me to use my email address with a Google SMTP server. When I run test emails I get this message:
2018-04-24 15:54:29 Connection: opening to ssl://smtp.gmail.com:465, timeout=300, options=array()
2018-04-24 15:54:29 Connection: opened
2018-04-24 15:54:29 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP o18-v6sm9577302oto.64 - gsmtp
2018-04-24 15:54:29 CLIENT -> SERVER: EHLO ehaccp.org
2018-04-24 15:54:29 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [50.116.92.72]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8
2018-04-24 15:54:29 CLIENT -> SERVER: AUTH LOGIN
2018-04-24 15:54:29 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2018-04-24 15:54:29 CLIENT -> SERVER: c3VwcG9ydEBlaGFjY3Aub3Jn
2018-04-24 15:54:29 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2018-04-24 15:54:29 CLIENT -> SERVER: U2lnbmU0MjIh
2018-04-24 15:54:29 SERVER -> CLIENT: 534-5.7.14 Please log in via your web browser and
534-5.7.14 then try again.
534-5.7.14 Learn more at
534 5.7.14 https://support.google.com/mail/answer/78754 o18-v6sm9577302oto.64 - gsmtp
2018-04-24 15:54:29 SMTP ERROR: Password command failed: 534-5.7.14 Please log in via your web browser and
534-5.7.14 then try again.
534-5.7.14 Learn more at
534 5.7.14 https://support.google.com/mail/answer/78754 o18-v6sm9577302oto.64 - gsmtp
2018-04-24 15:54:29 SMTP Error: Could not authenticate.
2018-04-24 15:54:29 CLIENT -> SERVER: QUIT
2018-04-24 15:54:29 SERVER -> CLIENT: 221 2.0.0 closing connection o18-v6sm9577302oto.64 - gsmtp
2018-04-24 15:54:29 Connection: closed
2018-04-24 15:54:29 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/TroubleshootingI have verified my password and user name to no avail.
I have no idea what to do at this point. Any help would be appreciated.Thank you!
~Stephen Sockett