eduardoboucas / staticman

đź’Ş User-generated content for Git-powered websites
https://staticman.net
MIT License
2.41k stars 536 forks source link

Mailgun mailing list created but no emails sent for subscribes #129

Open timmehhh7 opened 7 years ago

timmehhh7 commented 7 years ago

Hi @eduardoboucas first of all love Staticman! We are in the process of migrating our entire corporate site over to Jekyll + GH Pages + Staticman ... so far I've gotten everything working including nested replies etc. with the exception of email notifications.

I've setup a Mailgun account with a new domain, and verified it according to their instructions. I've used the staticman API endpoint to encrypt the API key and domain options and placed in staticman.yml ... with a checkbox in the form sending the options[subscribe] key to the Staticman API, I can see that mailgun creates the mailing list, however I'm not getting any mail traffic at all in the logs.

Any ideas where to look first to troubleshoot?

Cheers and thanks so much for the work done so far! :)

willymcallister commented 7 years ago

Tim,

I followed a similar path to you. http://spinningnumbers.org (source: https://github.com/willymcallister/willymcallister.github.io https://github.com/willymcallister/willymcallister.github.io)

Here’s two things to try:

  1. Set yourself up as an Authorized Recipient in your account settings. You have to go through a confirmation dance to verify the address. Reply to one of your own comments and see if mailgun sends you a message.

  2. When I got this working, mailgun would send to me but would not send a message to strangers who were not “authorized”. To get that to work I had to enter a credit card number for my account and become upgraded to the Unity Plan. They won’t charge the card if email volume is below 10K per month.

And then keep an eye on the mailgun logs. I was getting pushback when trying to get an email sent to yahoo.com http://yahoo.com/. They weren’t sure if I was a spammer or not, and my message was “throttled” and finally rejected after an hour. I wrote a support ticket to mailgun support and they switched me to a less-trafficked IP address. That took care of the throttling.

Good luck, Willy McAllister, spinningnumbers.org

timmehhh7 commented 7 years ago

Thanks @willymcallister I did setup a Mailgun account with a credit card to ensure I wouldn't run into the validation stuff. I'm fairly certain my staticman.yml is fine as the API call from Staticman seems to create the mailing lists without issue, and the proper email addresses show in there as subscribed. There is absolutely nothing in the Mailgun logs in terms of even an attempt to send a message.

I had a quick peek at your repo and don't see anything that I'm missing. My form passes the same fields, and the staticman config file has mostly the same options (aside from a couple of allowed fields, like URL, that I'm not using)

Would be curious what the logs look like from staticmanapp