Finding your API Key
Log into the Mailgun Control Panel. On the Mailgun dashboard, there will be an overview of your Mailgun account which will include sections for your API Keys and Sending Domains. You will need to get both the API Key and one of your verified Sending Domains to connect with Sendwithus.
Alternatively, you can go to the API Keys page located in your Mailgun account settings. There will be two API keys available, the one you will need to use will be the Private API Key (key-abcde12345abcde). Save this key to use in the steps below.
Connect with Sendwithus
- Go to Delivery Settings in the Sendwithus dashboard, and click on the Add ESP Account button.
- Name the account and select Mailgun as the Account Type.
- Copy and paste the domain from your Mailgun Control Panel into the Domain field and the API key into the API Key field.
- Click the Save ESP Account and wait for verification.
Enable Sendwithus Analytics in Mailgun
Ensure that you’re in the Webhooks section of the Mailgun dashboard. Verify that all Legacy webhooks are set to something similar to this URL: “https://hooks.sendwithus.com/webhook/mg/abcde12345/esp_12345abcde”. If everything is the same, Sendwithus is properly integrated with your Mailgun account. If all of the Legacy webhooks aren’t the same, simply change them to point at Sendwithus by:
- Clicking the plus icon
- Adding the “https://hooks.sendwithus.com/…” URL in the input box and save!
If none of the webhooks are set up, contact firstname.lastname@example.org to get your analytics URL.
Add Multiple Sending Domains
If you have multiple sending domains in Mailgun and want to connect these to your Sendwithus account, you can do so by adding each Sending Domain as a new separate ESP. Just enter the unique Sending Domain into the Domain field upon ESP creation.