Skip to main content

Mailgun

Written by Berke Atik

Quick Summary

This article explains how to integrate Mailgun with Loyaltify. By connecting your Mailgun account, you can send transactional emails through Mailgun directly from Loyaltify.


Overview

Mailgun integration allows you to:

  • Deliver transactional emails (e.g., receipts, verifications, notifications).

  • Use your Mailgun account for authenticated email sending.

  • Monitor delivery through Mailgun’s dashboards.

This is a suitable setup if you prefer to manage emails using Mailgun instead of the default Loyaltify mail servers.


How It Works

To use Mailgun as your email provider in Loyaltify, you must connect your Mailgun account using an API key. This key authorizes Loyaltify to send email.


Connecting Mailgun in Loyaltify

Follow these steps to retrieve and connect your API key:

  1. Log in to your Mailgun account.

  2. Click your user profile on the top right (Step 1 in the screenshot).

  3. Select API Security from the menu (Step 2).

  4. Click Create API Key (Step 3).

  5. In the dialog, type a name like Loyaltify for your key.

  6. Click Create Key (Step 4).

  7. Copy the generated API key.

Then, in Loyaltify:

  1. Navigate to Integrations > Mailgun.

  2. Paste the copied API Key into the API Key field.

  3. Click Connect to complete the integration.

Loyaltify will now use your Mailgun account to send all marketing emails.

Sender Address Not Appearing in Loyaltify

If no sender address appears in the Loyaltify Email module after connecting Mailgun, make sure that an SMTP credential exists for your verified Mailgun domain.

In Mailgun:

  1. Open your verified domain.

  2. Navigate to SMTP Credentials.

  3. Check whether an SMTP user, such as [email protected], is listed.

  4. If no SMTP user exists, click Add New SMTP User and create one.

Once the SMTP credential has been created, return to Loyaltify and reconnect the Mailgun integration.

The sender address should then appear as an available option in the Email module.

⚠️ Keep your API key secure. If it is compromised, revoke and regenerate it in Mailgun immediately.

Did this answer your question?