<p>There's a support article here you can help use to debug email deliver issues: <a href="https://craftcms.com/support/troubleshooting-email-errors#dealing-with-email-delivery-issues" rel="nofollow noreferrer">https://craftcms.com/support/troubleshooting-email-errors#dealing-with-email-delivery-issues</a></p>

<p>The TL/DR is, use a transaction email provider like Postmark, Mailgun, etc. and make sure you've got DKIM/SPF and DMARC all setup properly as well.</p>

CC BY-SA 3.0
2018-04-17T21:19:49.037Z
2018-04-17T21:19:49.037Z
Brad Bell
<p>Locally in a MAMP environment Craft CMS/Contact Form plugin works great! But for some reason in production on a actual live server on the internet it fails to successfully send any emails.</p>

<p>I'm not sure if this is because of the way email is handled by Craft? In Settings > Email, I set the transport type up to Gmail instead of the default Sendmail. But still no luck.</p>

CC BY-SA 3.0
2018-04-17T19:34:32.557Z
If you test your email settings in /admin/settings/email (`test` button at the bottom of the page), what message do you get, and does that test email arrive?
Paul
CC BY-SA 3.0
2018-04-17T19:35:54.227Z
Successful. Just doesn't arrive. Looks like I may need to go the mailgun route
Payton Burdette
CC BY-SA 3.0
2018-04-17T19:37:40.470Z
Mailgun, Postmark, Mandrill ... With the advantage of clearer error message and status reports :)
Paul
<plugins><craft3><plugin-contactform>
Craft CMS contact form plugin works locally but not in production?
# Craft CMS contact form plugin works locally but not in production?

(Asked by: username_0 on 2018-04-17)

Locally in a MAMP environment Craft CMS/Contact Form plugin works great! But for some reason in production on a actual live server on the internet it fails to successfully send any emails.

I'm not sure if this is because of the way email is handled by Craft? In Settings > Email, I set the transport type up to Gmail instead of the default Sendmail. But still no luck.

**Tags:** plugins, craft3, plugin-contactform
> **Comments:**
> **username_1**: If you test your email settings in /admin/settings/email (`test` button at the bottom of the page), what message do you get, and does that test email arrive?  
> **username_0**: Successful. Just doesn't arrive. Looks like I may need to go the mailgun route  
> **username_1**: Mailgun, Postmark, Mandrill ... With the advantage of clearer error message and status reports :)  

---

## 1 answers

### Answer by username_2 on 2018-04-17. Score: 1

There's a support article here you can help use to debug email deliver issues: <https://craftcms.com/support/troubleshooting-email-errors#dealing-with-email-delivery-issues>

The TL/DR is, use a transaction email provider like Postmark, Mailgun, etc. and make sure you've got DKIM/SPF and DMARC all setup properly as well.


---

