Mailgun email setup instructions

Follow these instructions to configure and send Mailgun email messages using HoodEngage.


Requirements

Before starting, ensure you have:


Step 1: Create a Mailgun account

  1. Visit the Mailgun website and sign up for an account
  2. Verify your email address to activate the account

Step 2: Add your domain to Mailgun

  1. Log in to your Mailgun account
  2. Navigate to Domains and click Add new domain in the top right corner

Mailgun add new domain

Add new domain button location in Mailgun

  1. Enter your domain name and select your region
  2. Click Add Domain to complete the process

Step 3: Verify your domain

3.1 Get DNS records

  1. On the left panel, navigate to Send > Sending > Domain Settings > DNS Records
  2. You’ll see the required DNS records to add to your domain

3.2 Update DNS settings

  1. Add the TXT records to your domain’s DNS settings
  2. Add the MX records to your domain’s DNS settings
  3. In the top-right corner, click Verify DNS settings

Mailgun verify domain

Verify DNS settings button location

Note
DNS propagation can take a few hours. Be patient and check back later if verification doesn’t work immediately.

Step 4: Generate API keys

  1. Navigate to Dashboard > API keys

Mailgun API key location

API Keys option location in Mailgun

  1. Here you’ll find your API keys

Mailgun API key

Mailgun API keys

  1. Copy your private API key
Warning
Keep your Mailgun API Key secret — it functions like a password. Never share it publicly.

Step 5: Configure Mailgun in HoodEngage

5.1 Access email settings

In your HoodEngage dashboard, navigate to HoodEngage Settings > Email in the top right corner.

Email setup location

Email setup location in the navigation

Here, you can see the overview of all your email configurations.

Email setup overview

Email setup overview

5.2 Add new email configuration

  1. Click on the Add email configuration button in the top right corner

Add new email configuration

Add new email configuration

  1. Fill out the integration name
  2. Switch the toggle button to Active
  3. Choose Mailgun as provider
  4. Enter the following details:
    • SMTP Domain — Your verified Mailgun domain
    • API Key — Your private API key from Mailgun
    • Sender Email — The email address emails will be sent from
    • Sender Name — The name that will appear as the sender
  5. Click Validate to confirm the configuration

Mailgun validate

Mailgun info & the Validate button


Step 6: Send a test email

  1. After validation, use the test email option below the configuration
  2. Enter a recipient email address
  3. Click Send Test Email
  4. Verify that the test email is received at the specified email address
Tip
Always send a test email to confirm your setup is working before launching campaigns.

Step 7: Set as default (optional)

To set your Mailgun configuration as default:

  1. Go to the email configurations overview
  2. Click on the Set as default button next to your Mailgun configuration

Email config set default

Email configuration - Set as default

Setting a configuration as default means it will appear first as an option when sending emails in Campaigns.


Step 8: Add subscribers

You can add email subscribers using several methods:

  • Dashboard Upload — Upload a CSV of emails and user data or manually add emails
  • Server API — Programmatically add emails server-side
  • SDK Method — Add emails using our client-side SDK (recommended if using our SDKs for push or in-app messaging)
  • Email Web Prompt — Use a web prompt to collect email addresses and phone numbers

Troubleshooting

API Key validation fails

Cause: The API key may be incorrect or you’re using the wrong key type.

Fix:

  • Double-check you copied the private API key (not the public key)
  • Ensure no extra spaces were added when copying
  • Generate a new API key if needed

Domain not verified

Cause: DNS records haven’t propagated yet or are incorrect.

Fix:

  • Wait a few hours for DNS propagation
  • Verify you added all required TXT and MX records correctly
  • Use a DNS lookup tool to check if records are visible
  • Click Verify DNS settings again in Mailgun

Emails not being delivered

Cause: Domain verification incomplete or sender reputation issues.

Fix:

  • Ensure your domain is fully verified in Mailgun (green checkmarks)
  • Check Mailgun’s logs for bounces or failures
  • Verify your sender email matches your verified domain
  • Check if your domain is on any blocklists