This section is a step by step guide to add Mailgun as your email service provider.
You can use use your existing Mailgun account to integrate, or create a new account from here
Mailgun integration on SuprSend account
Step 1: On the SuprSend dashboard, follow the steps as below:
- Select Vendors from the left panel
- Select 'Email' as the channel from the list
- Select the communication category from the list - System, Transactional, Promotional
- Select 'Mailgun' from the list of Vendors
Step 2: On the Settings, enter the details:
Form Field | Description |
---|---|
Nickname | You can give any name which may help you to identify this account easily |
Private API Key | You will get this Private API key from your Mailgun account. SuprSend uses this API key to send email on your behalf via your registered Mailgun account. Check below section on how to get your Mailgun API keys |
Webhook Signing Key | You will get this key from your Mailgun account. SuprSend uses this API key to sign the delivery events received via webhook. Check below section on how to get your Mailgun API keys |
Is Sandbox environment | Select this if you are using Mailgun sandbox domain for sending emails |
Domain Prefix / Sandbox Domain | Sandbox Domain - Add sandbox domain name if you are using mailgun sandbox domain for sending emails Domain Prefix - Prefix of the subdomain names added in mailgun account. For example - if your subdomain name is mg.mydomain.com, the domain prefix will be mg Leave it blank if your root domain is added as the domain in mailgun account like mydomain.com Mailgun domain names can be referred from here |
Data center region | For domain region = EU, select "Europe region" else select "Outside Europe" |
From Name | Default 'From Name' that email will go from. You can override this in the individual template. eg. SuprSend |
From Address | Default 'From Email ID' that email will go from. You can override this in the individual template. eg. [email protected] |
Reply Address | Default 'Reply To Email id' on which replies are received. You can override this in the individual template. eg. [email protected] |
Price per notification | This is the amount you pay per email notification to Mailgun. It helps us to calculate, estimate and optimise your cost spent on notifications. |
How to get API Key from Mailgun account
Once logged in to your Mailgun account, navigate to API Security from your profile.
Private API key can be seen only at the time of creation. You can either use any of your existing keys or "Add new key".
User role to read API keys
Users with "developer" or "admin" role can only read the API keys. Please check with relevant folks in your team if you are not able to see the API keys in your account
Setting Callback URL in Mailgun Account
One of the platform advantage of using SuprSend as a central communication system is that it shows notification analytics for all channels in your SuprSend account together.
Go to Sending->Webhooks->Add webhook
Add below URL for all event types (Delivered Messages
, Clicks
, Opens
, Spam Complaints
, Permanent Failure
, Temporary Failure
)
URL: https://hub.suprsend.com/webhook/mailgun/
How to add Unsubscription link in email
It is advisable to give your recipients the ability to unsubscribe from emails. First, it is required by the CAN-Spam Act. Second, if you don’t give them this option, they are more likely to click on the spam complaint button, which will cause more harm than allowing them to unsubscribe. Finally, many ESPs look for unsubscribe links and are more likely to filter your email if they don’t have them.
You can add "Unsubscribe" link to your email by enabling Unsubscribes in Sending -> Domain settings (Tracking section)
Updated 9 months ago
Create an email template and start sending email notifications with your Mailgun account