fider
fider copied to clipboard
Documentation not good enough regarding mailgun
The only thing written about mailgun in the documentation at https://fider.io/docs/hosting-instance is those two lines of configuration:
# EMAIL_MAILGUN_API: key-yourkeygoeshere
# EMAIL_MAILGUN_DOMAIN: yourdomain.com
Sadly this is not good enough. Officially mailgun is using these terms:
API key: 7a8b7251a4991a206b06d151e12cf3bb-8d821f0c-XXXXXXXX
API base URL:https://api.mailgun.net/v3/sandbox58bc7147a870420bXXXXXX25948b7.mailgun.org
There are three problems:
- First it looks like I need to prefix EMAIL_MAILGUN_API with "key-".
- It is not sure which domain we are talking about. In the curl example on the mailgun website the URL is written like this:
https://api.mailgun.net/v3/YOUR_DOMAIN_NAME/messages
Do you need here now the full domain or onlysandbox58bc7147a870420bXXXXXX25948b7.mailgun.org
? - If it is only the sandbox part how can I switch to the EU servers? Because there the servers would be
https://api.eu.mailgun.net/
Could you handle it?
@satoshinotdead no, I am still waiting till the documentation is updated.
If you feel like the docs could be more explicit, please send a PR.
All Mailgun code used in Fider is here: https://github.com/getfider/fider/tree/main/app/services/email/mailgun
That should help clarify those questions.
Sadly I don't feel that confortable with this programming language. I created now a PR but I am not sure if it is correct.