How to set up email to/from SMS
This blogpost includes a complete guide on how to set up email to/from SMS and is written by our talented junior software developer Jacob Sherffenberg-Møller.
After reading this guide you will be able to create a complete setup of email to/from SMS that runs automatically and enhances your business.
Advantages of using emails to/from SMS:
- Receive SMS messages in your email inbox and send emails to SMS.
- Get a notification if a SMS is not delivered.
- Use SMSes instead of emails to make sure that your message is seen by your target group.
- Easy to set up.
- Works with most email clients.
The email to/from SMS API has recently been implemented in the Danish taxi service 4x27’s system where it is used for bookings and internal communication with taxi drivers. The setup allows customers to order a taxi by sending a text message to +45 2727 2727 along with their address in the text field which then converts to an email that is sent to the booking office’s mailbox. The booking office can shortly after send an email back that converts to a SMS, notifying the customer that a taxi is on the way.
Well enough about that… Let’s get started!
Sending emails as SMSes
With our Email to SMS API we are meeting a demand from customers with systems or setups that doesn’t easily allow normal HTTP requests to our API. Most systems however, have support for sending an email some way or another.
How to set up SMS to email
The setup is very simple and only requires: - A GatewayAPI account. Get one for free here: https://gatewayapi.com/ - A correct setup of SPF and DKIM on the email client you use. - That you whitelist your domain or email address in the GatewayAPI backend. - That you set up a default sender ID in the GatewayAPI backend.
Using your whitelisted email or any email addresses on your whitelisted domain, you can now send SMSes by sending emails to addresses formatted as the firstname.lastname@example.org. See below for examples.
You will also need to add the country code. For example: +45, 45 or 0045 in Denmark.
How it works
All emails sent to @smtp.gatewayapi.com will be attempted to be sent as SMSes. This is done by transferring the phone number from the email address and parse the email to plain text and send it as an SMS through our SMS gateway.
We check SPF and DKIM for the email address that is sent from and if it doesn’t check out, an error will be sent back as a bounce report to the email address. On top of that, one and only one account will be able to whitelist email addresses from a domain. So, if my account has whitelisted email@example.com, no other accounts will be allowed to whitelist firstname.lastname@example.org or any other @onlinecity.dk email addresses.
We try to automatically detect auto signatures and remove them from SMSes but we recommend that you remove your auto signature before sending emails to SMS.
Lastly, to avoid huge chained SMSes to be sent, we have limited the length of SMSes to 764 characters which is the equivalent of five SMSes. This is to avoid long email threads being sent as a single SMS and to avoid that accounts send more SMSes than was intended.
Utilizing existing platforms
As mentioned in the beginning of the guide, not all systems allow an easy setup of API integration via HTTP requests. But almost every CRM, marketing automation platform or ERP allows you to send emails one way or another - maybe by using automated trigger flows or by simply having a user interface for sending emails. The point is, no matter how it is done on your existing platform, it will allow you to send SMSes as well. This can be a strong marketing tool since the opening rate of SMSes are many times higher than emails’. So using SMS in your existing automated flows allows you to reach customers that normally wouldn’t notice your email buried between millions of emails in their inbox.
Receiving SMSes as emails
We have also made it easy for you to receive responses from your customers by enabling SMS responses to be sent directly to your email inbox. If you have already set up and whitelisted the email they respond to as a sender in the email to SMS, you can have a correspondence completely through your email client in your end and your recipient’s phone in the other end.
Get started easily
All you need to do to get up and running is:
- Lease a phonenumber through GatewayAPI.
- Add a SMS to an email webhook and assign your number.
When this is completed, all SMSes sent to your number, will be delivered as emails to the email address(es) you have added as destinations for your webhook.
Watch our video tutorials
If videos are more your thing or you seek a supplement to this guide, you can watch two videos we have created to help you get everything up and running. They only take a couple of minutes combined, and will show you how to set up both email to SMS and SMS to email.
See how to setup email to SMS
See how to setup SMS to email
If you have any questions after following these video guides please reach out to our friendly support on live chat, we will be happy to help you with any questions you might have.
The Danish taxi-service 4x27 has been using the solution for four months now and the administration reports that it saves them a considerably amount of time since they can support the taxi drivers directly from their email system. Thomas RB Petersen, executive director tells:
We are very satisfied with the solution. Both the administration and the taxi drivers have reported that communication is significantly easier and more effective now.
Additionally, the booking solution has already been used by thousands of customers and it is expected that the number of monthly users will increase even more in the future.
That was it for this time. Have fun setting it up!
Junior software engineer
Subscribe via RSS