Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialFathima Fas-ha
6,847 PointsEnable Email for WordPress on Your Computer
Hi there!
Following error occured when attempting to send test email: SMTP Error: Could not authenticate.
CLIENT -> SERVER: EHLO localhost CLIENT -> SERVER: STARTTLS CLIENT -> SERVER: EHLO localhost CLIENT -> SERVER: AUTH LOGIN CLIENT -> SERVER: ZmFzaGFmYWhteUBnbWFpbC5jb20= CLIENT -> SERVER: ZmFobXkyMDE5QGdhbGxl 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 w3sm120677579pge.8 - gsmtp SMTP Error: Could not authenticate.CLIENT -> SERVER: QUIT SMTP Error: Could not authenticate.
2 Answers
Ryan Thacker
4,201 PointsChange to STARTTLS
John Nguyen
Full Stack JavaScript Techdegree Graduate 30,501 PointsWhat if you got STARTTLS on with port 587. but still get errors?
CLIENT -> SERVER: EHLO localhost
CLIENT -> SERVER: STARTTLS
SMTP Error: Could not connect to SMTP host.CLIENT -> SERVER: QUIT
SMTP ERROR: QUIT command failed: SMTP Error: Could not connect to SMTP host.
Ryan Thacker
4,201 PointsSounds like your smtp settings are incorrect, what email are you using?
John Nguyen
Full Stack JavaScript Techdegree Graduate 30,501 PointsHey Ryan,
I'm using Gmail. I thought I had the correct settings, but I might be missing something here.
Here is a screenshot.
John Nguyen
Full Stack JavaScript Techdegree Graduate 30,501 PointsLate, but I figured it out. I needed to check the box for 'Allow Insecure SSL Certificates' in the additional settings.
Dave StSomeWhere
19,870 PointsDave StSomeWhere
19,870 PointsDid you turn on "Less secure app access" on your gmail account?
I use a separate gmail account for this, to make sure any of my real gmail accounts don't get messed up.