Skip to main content

Mailgun

Send marketing emails to your customers through your Mailgun account.

Written by Berke Atik

Connect Mailgun and you can send marketing emails to your customers straight from the Loyaltify Marketing tab, using your own Mailgun account and domain.

This guide covers how to connect Mailgun, how to make your sender address appear, and how to send your first email.

💡 Good to know: Integrations are part of the Advanced plan. You'll find them under Integrations in the Loyaltify menu.

Before you start

You'll need a verified sending domain in Mailgun, with an SMTP credential for it (see Step 3).


Step 1: Create an API key in Mailgun

  1. Log in to Mailgun and click your profile at the top right.

  2. Select API Security and click Create API Key.

  3. Give it a name, such as "Loyaltify", click Create Key and copy the key.


Step 2: Connect Mailgun in Loyaltify

  1. Go to Integrations → Mailgun.

  2. Paste the key into API Key.

  3. Click Connect.

⚠️ Keep your API key safe. If it's ever shared by mistake, delete it in Mailgun and create a new one.


Step 3: Make sure your sender address appears

Your sender address only appears in Loyaltify once your Mailgun domain has an SMTP credential. If you don't see it:

  1. In Mailgun, open your verified domain and go to SMTP Credentials.

  2. Check whether there's an SMTP user, such as [email protected].

  3. If there isn't, click Add New SMTP User and create one.

  4. Back in Loyaltify, connect Mailgun again.

Your sender address now shows up when you write an email.


Send an email with Mailgun

Once Mailgun is connected, you can send emails to your customers from the Marketing tab.

  1. Go to Marketing and click New Message.

  2. Select the card whose customers should receive the email.

  3. Choose Email as the message type and Mailgun as the provider.

  4. From: Choose your verified sender address, such as [email protected].

  5. Subject: Write a short, clear subject line.

  6. Pick the date and time to send it.

  7. Write your message in the editor and click Create.

💡 Example: Subject "Happy hour starts now ☕" with a short message: "Get 10% off all drinks until 6 pm today. Just show your loyalty card at the counter."


Good to know

  • Mailgun only sends your marketing emails. Emails Loyaltify sends for you, such as the email with a customer's card, always come from Loyaltify.

  • Emails go to people who have your card. To reach people who haven't joined yet, send them your sign-up form link from your own email tool.

  • Emails are sent when you choose. There are no automatic emails, for example when a card is full.

  • Your customer list stays in Loyaltify. Mailgun only delivers the messages. See Marketing for everything you can send.


Need a hand?

We're here to help!

If you have any questions about the Mailgun integration, reach out to us via live chat inside Loyaltify, or use the chat button at the bottom right of this page. Our team will be happy to help.

Did this answer your question?