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 trialBryson Gilreath
5,947 PointsFor 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.
Rina Schwartz
1,672 PointsI managed to solve the problem. I only have three options for type of encryption: None, SSL/TLS, or STARTTLS. I had to select STARTTLS, not SSL?TLS. Now it works.
Hannah Mycock
14,899 PointsI couldn't find an "App passwords" option either, but fixed the problem by allowing access from less secure apps.
l p
2,883 PointsWorked but had to use also STARTTLS. Thanks!
Janet Leon
6,908 PointsThis works using STARTTLS!!!
7 Answers
Øystein Haugseth
15,672 PointsUsing 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.
Ben Myhre
28,726 PointsI went down this trail, as well, but it did not help. After I clicked "yes, it was me", it continued blocking me. I had to go to the google settings and change 'allow less secure apps' and then it worked. This is sort of concerning, really.
Aaron Parke
2,160 PointsI had to do this then also turn "Allow less secure apps" ON, then it worked for me!
Gavin Butler
iOS Development with Swift Techdegree Graduate 15,489 PointsRina - STARTTSL worked for me also, with a gmail smtp. Thanks for the tip.
Rina Schwartz
1,672 PointsHi 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 Toft
1,894 PointsI 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
Nawal Tariq
Front End Web Development Techdegree Student 912 PointsI 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 Cheng
PHP Development Techdegree Graduate 46,936 PointsRina's suggestion for STARTTLS works for me too
codingwithcats
3,564 PointsThanks Bryson Gilreath! This - along with changing authentication to STARTTLS - worked for me!
Rina Schwartz
1,672 PointsRina Schwartz
1,672 PointsI don't have this option. When I click on Signing in to Google, I don't have a link for App passwords. What should I do?