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 trialSHUPING CHAN
538 Pointscan't receive my test email after setting the STMP
should I type this TLS/587 or just follow the teacher
4 Answers
Ash Scott
435 PointsCan you post the code you have please? Remove the password from the SMTP settings if it's there. Double check everything is correct. If you're using Gmail for your SMTP make sure you're using the correct settings :)
SHUPING CHAN
538 Pointsthanks i solved this problem because it seems that google has some security systme on my email. I change the security setting then i can receive the test eamil .:D
Michael Giustiniani
20,411 PointsCan you tell me where this security setting is? I tried SSL/465 and TLS/587 and neither worked for my gmail account.
SHUPING CHAN
538 Pointsi tried this one SMPT:smtp-relay.gmail.com SSL/465 OR TLS/587 neither of them can work :(
Zahidul Islam
1,671 PointsHi I tried lots of way but my one not working . plz help . SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
I used SMTP smtp.gmail.com or smtp-relay.gmail.com TLS 587 also tried SSL 465 and none
SHUPING CHAN
538 PointsSHUPING CHAN
538 Pointshere is what i type for SMTP Host: smtp.gmail.com Type of Encryption: TLS SMTP Port: 587
Ash Scott
435 PointsAsh Scott
435 PointsSo you need TLS for those settings. Try changing your settings to the ones from the first column at this link