Mailgun
Outbound
- Open the Mailgun console and go to
Sending -> Domains
- Hit
Add New Domain
- Enter the domain you want to add and setup the correct DNS records. For more instructions follow Mailguns setup guide
- Navigate to
Domain settings -> Sending API keys
- Hit
Add sending key
and pick a description and submit - Copy the provided API key
- Open a new window and go to your Parcelvoy project settings
- Navigate to
Integrations
and click theAdd Integration
button. - Pick
Mailgun
from the list of integrations and enter thesending api key
(API key) anddomain
in the provided fields. - Hit save to create the provider.
Inbound
Email sending is not the only important part, you also need to keep track of things like email opens, clicks, unsubscribes, bounces and complaints. Parcelvoy automatically takes care of opens, clicks and unsubscribes for you, but bounces and complaints require webhooks from Mailgun.
To setup inbound webhooks, do the following:
- Open the Mailgun console and go to
Sending -> Webhooks
- Pick the domain you will be using in the top right and then click
Add Webhook
- Select
Permanent Failure
and enter the Parcelvoy Mailgun unsubscribe URL for your provider (which can be found on the provider details screen) - Hit
Create Webhook
- Repeat this process two more times for the webhook event types
Temporary Failure
andSpam Complaints
- You can optionally copy the HTTP webhook signing key to make the process more secure. We recommend doing this as it takes little to no effort. You can find this key on the right hand side of that same page, just enter it on the Parcelvoy provider under Webhook Signing Key and hit save.
Related Links
https://documentation.mailgun.com/en/latest/quickstart-sending.html#send-via-smtp https://www.mailgun.com/blog/product/a-guide-to-using-mailguns-webhooks/