Mailgun integration allows you to send emails through this provider using Exponea’s standard emailing mechanism.
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.
Technical warning about re-using mail API key.
Exponea allows you to use the same mail API key in different integrations even in different projects. However, this practice is not recommended, because all integrations with the same API key will share just one mail provider webhook for tracking delivered campaign events.
Deleting any of these integrations with a shared API key will result in deletion of the webhook and therefore none of the given projects will have tracking of delivered campaign events.
- 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/en/latest/api-webhooks.html
After Integrating with Mailgun, you can look at Default email settings in order to change it to your default email integration.
Updated about a month ago