Back to main menu

Product

How to set up your own SMS-to-email gateway with Mailgun and MessageMedia

In this article, we’re partnering with MessageMedia to introduce you to SMS-to-email gateways. We’ll cover the setup and the reasoning and statistics behind why the email to SMS relationship is one you want in your toolbox.

PUBLISHED ON

PUBLISHED ON

What’s better: email marketing or SMS marketing?

Email may have the best ROI in the messaging market but the average open rate of a text message sits at 98%, with 90% of messages being read within 3 minutes of delivery. Sounds like an opportunity that can’t be passed up. The next question is, how do you affordably and efficiently send mass SMS messages to your contacts? The answer? Create an SMS-to-email gateway.

What is an SMS-to-email gateway?

First, let’s talk about what an SMS gateway is. An SMS gateway is an interface for sending SMS without using a mobile device. In simple terms, the SMS is transformed into something else, like an email or an HTTP request, and given a gateway address for convenient sending.

An SMS-to-email gateway allows you to send and receive SMS messages through a virtual number via email. Without getting too technical, email to SMS uses Simple Mail Transfer Protocol (SMTP) and an SMS API to convert emails into SMS format, before sending to the recipient’s mobile number.

What is a virtual number?

A virtual number is a telephone number that isn't bound to a fixed location, meaning it doesn’t need a physical SIM card or address location to provide a call or messaging service. A virtual number accepts, and places calls through Voice Over Internet Protocol (VoIP). If you use iMessage, WhatsApp, or Google Voice, you’re using the same VoIP technology behind virtual numbers.

Why do I need an SMS-to-Email gateway?

Not convinced about SMS-to-email gateways? Here are four reasons why an SMS-to-email gateway can help your next marketing campaign:

  • Badge Check

    Deliver messages exactly when you want them to be read. Since text messages are usually read within 15 minutes of delivery, you can send your subscribers targeted messages at specific times. Use an SMS-to-email gateway to blast out a high volume of SMS messages in just seconds.

  • Badge Check

    Send SMS for a fraction of the cost that mobile carriers offer. With a virtual number and an online SMS platform, you can send text messages for just a few cents. These rates are much better than the standard ones offered by mobile phone networks.

  • Badge Check

    Operate on a universal platform. One of the biggest problems with emails is the different levels of support Email Service Providers (ESPs) and email clients provide for specific features. But SMS services are available to anyone with a mobile phone and text plan, regardless of the mobile device’s age or features.

  • Badge Check

    Easily integrate SMS into existing CRM tools and infrastructure.

    With an SMS-to-email gateway, you can send, receive, and reply to SMS messages in a scalable way from the comfort of your own inbox.

How do I set up an SMS-to-email gateway?

Now that we’ve covered the basics, let’s learn how to set up an SMS-to-email gateway. We worked with our friends over at MessageMedia to integrate Mailgun and set up an SMS-to-email gateway using Zapier.

Before you start…

For this tutorial, you’ll need:

Create a Zap

Create a zap by allowing Zapier access to both your MessageMedia and Mailgun accounts using your API keys and Basic Authentication Secret details, as well as your Domain name as seen in the images below.

Screen asking for Zapier access to MessageMedia account
Screen asking for Zapier access to Mailgun account

Once your accounts are connected via Zapier, you can get creative. Think about your marketing strategy, and when it makes sense to send an SMS message. In the example below, we’ve set up an integration to send an SMS message to the user 1 day (at noon the following day) after the recipient has opened the email to remind them of a promotion.

Choosing trigger event for Mailgun on Zapier

Start by configuring the Mailgun open/click event step. You’ll need to add the provided webhook URL to your Mailgun account.

Zapier's webhook test screen

Next, configure the triggers and account details for MessageMedia to trigger the SMS message. You can customize the content of your text message and adjust this setup based on your needs.

Zapier action screen with fields

Once you have configured your zap, test it before publishing your integration.

Test fields for MessageMedia action

By building an SMS-to-email gateway you can leverage the power of email automation and delivery capabilities with SMS messaging services. The result is increased efficiency and effectiveness in reaching out to customers, engaging them, and improving your overall communication. It also combines management of email and SMS campaigns into a single platform and gives you metrics to improve strategy.

Build on your SMS engagement by creating targeted marketing campaigns with an easy drag and drop email editor.

What an SMS-to-email gateway can tell you

Not all users will opt-in to receiving text messages, just as not all users will opt-in to receiving marketing emails so this is our disclaimer that building clean lists with double opt-ins and confirmations is always a best practice, unless you want to tank your engagement and reputation. Okay, we’re hopping off the soap box, let’s get back to it.

With your gateway set up you have a lot of freedom to test marketing and engagement strategies. You could set up automated SMS messages to be sent to welcome new subscribers (as in our example) but you could also create SMS automations for status updates, sales reminders, etc. The gateway would allow you to manage and observe both SMS metrics as well as email metrics to gain insight into which channels are most effective. Here’s an example:

It may make sense with open rates to send a promotion via SMS, but it may make more sense to send a password reset via email. The more channels you have integrated, the more options you have to connect, and the more metrics you have to observe which connections work best.

To learn how to send campaigns directly within MessageMedia by linking your domain, check out this post.

Final thoughts

There are many ways to maximize your reach and combining the methods for best ROI (email) and highest open rates (SMS) seems like a no-brainer to us. Platforms like Mailgun and MessageMedia make it easy to build these connections, but we know there are always a lot of nuances involved with your personal marketing strategy.

To keep learning from content like this, be sure to subscribe to our newsletter so you don’t miss out on strategies, integrations, or top secret email knowledge.

Email icon

Keep me posted! Get the latest from Mailgun delivered to your inbox.

Send me the newsletter. I expressly agree to receive the newsletter and know that I can easily unsubscribe at any time.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

This post was written in partnership with MessageMedia.

MessageMedia is trusted by over 65,000 customers and are one of the world’s leading customer engagement platforms for SMBs and many large enterprises. Headquartered in Australia, we are a truly global messaging provider with offices in Melbourne, London, Auckland and Denver.

MessageMedia makes it simple for customers to manage their communications through their preferred channels with access to our web portal, SMS API, email to SMS and 5000+ integrations.

Build your integration

Connect your MessageMedia account with Mailgun to create workflows and automate your SMS sending.

Related readings

Cover your bases with email and SMS for transactional messages

Every hero needs a sidekick they can count on to help save the day. A solid sidekick always has the hero’s back, and many times, they also have skills that complement their...

Read More

What is DKIM: Learn how it works and why it’s necessary

Are you who you say you are, or are you a spoofer in disguise? Answering this question is what DKIM is all about. As email usage and capabilities continue to grow, it’s important to...

Read More

How does email work? Decode the mysteries with our straightforward guide

What is email? Well, we know it’s a cheap, effective form of communication that is so widely used there’s an entire global infrastructure to support it. We rely on email for...

Read More

Popular posts

Email inbox.

Email

5 min

Build Laravel 11 email authentication with Mailgun and Digital Ocean

Read More

Mailgun statistics.

Product

4 min

Sending email using the Mailgun PHP API

Read More

Statistics on deliverability.

Deliverability

5 min

Here’s everything you need to know about DNS blocklists

Read More

See what you can accomplish with the world's best email delivery platform. It's easy to get started.Let's get sending
CTA icon