Use your Mailgun Account

Updated

You can use your Mailgun account to send email through Customer.io with no loss in functionality. To take advantage of Mailgun, you need to do two things:

  1. Point Mailgun’s webhooks at Customer.io.
  2. Configure Mailgun as a custom SMTP server in Customer.io.

Point Mailgun’s webhooks at Customer.io

  1. Go to the Mailgun webhooks page.

  2. Enter the webhook URL that corresponds to your region for the events you want to forward to Customer.io.

    • US: https://track.customer.io/mailgun/events
    • EU: https://track-eu.customer.io/mailgun/events
    Example US webhook config
    Example US webhook config

 Do not send Clicks or Opens to Customer.io!

Customer.io already tracks this information. If you send these webhooks, we’ll record each event twice (once natively in Customer.io and again via Mailgun webhook).

If you want to track opens and clicks via Mailgun and not Customer.io, you can change tracking settings on an email by email basis.

Configure Customer.io custom SMTP settings

Before you begin, you need your Mailgun SMTP credentials. This integration uses port 587. If you need to use a different port, you should use a custom SMTP integration.

Mailgun config settings

  1. Go to Settings > Workspace Settings.
  2. Click Email, click Custom SMTP Settings, and then click Add Custom SMTP Server.
    Custom SMTP settings page
    Custom SMTP settings page
  3. Select Mailgun and click Continue to set up.
  4. If you haven’t set up webhooks yet, copy the URL on the Set up webhooks tab and then set up webhooks to report message metrics in Customer.io.
  5. Click Add Credentials and enter your Mailgun credentials.
    Adding one custom SMTP server.png
    Adding one custom SMTP server.png
  6. Click Finish set up. Your account is now set up to send email through Mailgun. If you have any questions or feedback, contact us and we’ll be happy to help!

 Configure multiple servers to use both transactional and broadcast streams

If you have a Premium Customer.io plan, you can configure multiple custom SMTP servers and assign one to each of your Mailgun server types.

Copied to clipboard!
  Contents
Is this page helpful?