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

PHP

PHPMailer and Postmark Confusion

By using the series of PHP videos, as well as Randy's blog post, I have almost been able to create a functioning contact form. However, I receive the following error on Postmark, even though my website tells the user the email was sent:

"SMTP API Error for myemail@mywebsite.com: Sender signature not defined for From address."

Although I thought I followed Randy's instructions perfectly, it seems that Postmark has received my data but is unwilling to finish sending it to my desired email address. Has anyone else had this issue with Postmark, or possibly could recommend a different third-party mail server that uses SMTP?

1 Answer

Have you created a signature for your site on Postmark?

Take a look here at the documentation for creating signatures.

This may not be the solution but will hopefully get you pointed in the right direction

Thanks for the reply Hampton. I was actually able to solve this issue yesterday when I contacted Postmark's support. They had to whitelist my account to receive emails from my contact form, as my signature was only good for sending emails from myemail@mywebsite.com. Once they made this change everything worked great!

Awesome Daniel. Glad they got it sorted out.