Create a new Mailgun account. You can also use an existing Mailgun account, although we recommend to set up an account dedicated to Exponea. The reason is that once fully configured, Mailgun will send webhooks (with status updates) to Exponea for every email sent via the used account - which may have implications for both privacy and performance.
Verify your account
Add New Domain and follow Mailgun steps in order to verify your domain and DNS. This step is very important in order to execute full functioning of integration. Since this step is rather technical and you will need permissions for your domain registration, consult this with your technical staff if you are not sure what to do. Please be aware that it may take some time (usually up to an hour, but could potentially be much longer) for Mailgun to fully verify the DNS records.
In Mailgun copy domain name and API key from Domains → Select Domain → Copy API key.
- In Exponea, go to
Data and Assets > Integrations > Add new integrationand select Mailgun. Enter copied Domain name and API key.
- If you do not select "Handle webhooks automatically", please copy given tracking hook URL.
To Mailgun: Webhooks → edit URL. Put the same URL in all of given fields.
You can now use Exponea campaigns to send signed emails from your own domains using Mailgun.
For more information on webhook notification documentation and naming, follow this link: https://documentation.mailgun.com/api-webhooks.html#webhooks