Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress Installing WordPress Locally Installing WordPress Locally Enable Email for WordPress on Your Computer

Fathima Fas-ha
Fathima Fas-ha
6,847 Points

Enable 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.

Dave StSomeWhere
Dave StSomeWhere
19,822 Points

Did 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.

2 Answers

Ryan Thacker
Ryan Thacker
4,201 Points

Change to STARTTLS

John Nguyen
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
John Nguyen
Full Stack JavaScript Techdegree Graduate 30,464 Points

What 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
Ryan Thacker
4,201 Points

Sounds like your smtp settings are incorrect, what email are you using?