Mailgun
Edit onConfiguring Mailgun
First off, make sure you have created an account with Mailgun and that you have verified your domain with them. Check Mailgun's documentation on how to do this.
Go to your Domain settings in Mailgun and make sure the Click tracking and Open tracking options are enabled:
Mailgun needs to know where to send your campaigns' statistics. Go to your Mailcoach Mail config page (in the user menu on the top right), select Mailgun as your driver, and copy the webhook that is mentioned in your Mail configuration:
Then, go to the Webhooks submenu in Mailgun, and, with the webhook URL that you copied in the last step, add new webhooks for the following event types: Clicks, Opens, Permanent Failure, and Spam Complaints:
For Mailcoach to know the statistics are trustworthy, it needs to know your Mailgun HTTP webhook signing key, which you can find on the same page:
Copy it, and paste it in the Webhook signing secret field in your mail configuration:
Configuring Mailcoach
Mailcoach still needs to know where to send its emails, so go to Overview page in your Mailgun dashboard, select the API option, then cURL and take note of the API key and API base URL that are now visible:
Go to your Mail configuration page in Mailcoach, and fill in the fields:
- Mails per second: this will be different according to your Mailgun plan, you can find an appropriate value for this in your Mailgun dashboard
- Domain: the same domain you did the setup for in Mailgun
- Secret: the API key you copied in the last step
- Endpoint: the API base URL that you copied in the last step, but without the
https://
and everything after the top-level domain (.net
in my case)