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 trial
de luna romeo
3,308 PointsYour Submission Has Not Been Sent : SMTP Error: Could not connect to SMTP host. .
Your Submission Has Not Been Sent : SMTP Error: Could not connect to SMTP host. .hellotreehouse is any one can help?, followed all the tutorial and teacher Randy blog about Sending Email With PHPMailer and SMTP..i got the POSTMARK third party server for handling mail and i believe i followed all the the steps in configuring it to the mail server....
ANY IDEA WHATS THE COMMON PROBLEMS in a particular error message like this?
i notice that when I am using my localhost server i can receive the email but not in the hosting website which always end up to the error message above..
thanks, NEWBIE :-)(ROMEO)
1 Answer
Casey Balza
7,704 PointsDid you make sure that the SPF and DKIM is verified for your sender signature? Did you set your username and password in your code with your API key? What port did you use? Postmark uses port 25, and to get around firewall issues port 2525.
I was setting up my contact form to use postmark but I was only able to get emails mailed to me if I used my "From" email address in the email input form...I thought that was very odd and after a few frustrating hours I decided to go without postmark and just used the "mail" function in my code.
de luna romeo
3,308 Pointsde luna romeo
3,308 Pointsthanks casey i got it,,:-)