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.
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.
Table of content
What is a virtual number?
Create a Zap
Table of content
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:
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.
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.
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.
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.
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.
Start by configuring the Mailgun open/click event step. You’ll need to add the provided webhook URL to your Mailgun account.
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.
Once you have configured your zap, test it before publishing your integration.
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.
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.
Keep me posted! Get our news and tips every week.
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 Laravel 10 email authentication with Mailgun and Digital Ocean
When it was first released, Laravel version 5.7 added a new capability to verify user’s emails. If you’ve ever run php artisan make:auth within a Laravel app you’ll know the...
Here’s everything you need to know about DNS blocklists
The word “blocklist” can almost seem like something out of a movie – a little dramatic, silly, and a little unreal. Unfortunately, in the real world, blocklists are definitely something you...