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.
Bryson Gilreath5,947 Points
For people having trouble with Gmail
If you're having trouble with Gmail try going to your Google account --> Sign-in & security --> Signing in to Google --> App passwords, and then creating an app password just for SMTP. Use that on the plugin settings instead of your main one.
Øystein Haugseth15,672 Points
Using gmail, I fixed it by choosing STARTTLS as well, but it will throw an error. When it does, go to sign-in & security --> Device activity & security events and click on Review events. Click on the event and then Yes, that was me. It then worked for me.
Gavin ButleriOS Development with Swift Techdegree Graduate 15,489 Points
Rina - STARTTSL worked for me also, with a gmail smtp. Thanks for the tip.
Hi Hannah, I tried that first, but it didn't work for me. Maybe it has something to do with the mamp version. I'm using mamp pro.
Heidi Toft1,894 Points
I get the following error when I tried setting up Easy SMTP:
Following error occured when attempting to send test email: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting Any ideas? I did try selecting STARTTLS and that did not work. I got a long error message.
Thanks for your help, Heidi
I was getting an error but then I turned on the option of allowing less secure sign in in Gmail. That did not resolve the issue but then I saw this thread and changed my type of encryption to STARTTLS and it worked for me.
Chapman ChengPHP Development Techdegree Graduate 46,936 Points
Rina's suggestion for STARTTLS works for me too