Setting up SMS-to-Email
Updated
SMS-to-Email allows you to configure rules to forward received messages (from SMS or any other channel) to an email address.
SMS-to-Email allows you to configure rules to forward received messages to an email address - this can be SMS messages as well as inbound messages from any other channel, such as WhatsApp or Facebook.
Setting up a Forwarding Rule
To create an SMS-to-Email rule:
- Open the Administration panel in Promo / Messenger.
- In the left sidebar, navigate to Messaging and SMS-to-Email.
- Click New Forwarding Rule.
- Complete the options for your Forwarding Rule (explained below).
- Click Save Forwarding Rule.
Forwarding Rule Options
Name: An internal description for the Forwarding Rule.
API Name: A unique API-friendly name for the record (automatically generated for you) containing only letters, numbers, and underscores.
Inbox: The Inbox from which inbound Messages will be forwarded. If you'd like to forward messages from multiple inboxes, you must create multiple Forwarding Rules.
Subject: The Subject line of the email containing the Forwarded Message. This can contain InboundMessage variables in Liquid tags (see below for more information).
Sender: The FROM email address of the email containing the Forwarded Message. This can contain InboundMessage variables in Liquid tags (see below for more information).
Destination: The recipient email address of the email containing the Forwarded Message. This can contain InboundMessage variables in Liquid tags (see below for more information).
Email Template: The Template for the body of the Email message you're forwarding. See below for steps to create a template for this purpose.
Include MMS Media as Attachments: When set to ON, Media files attached to inbound messages (such as WhatsApp or MMS messages) will be included in the Email as Attachments. When set to OFF, media will be disregarded and not included in the email forward.
Status: Whether or not the Forwarding Rule is active.
Creating a Template
Before setting up a Forwarding Rule, you must create a Template which will define the Body content of your emails.
You can include any text you like in your template, however the simplest version is to create a template containing just the body of the message itself, which you can set up following the steps below:
- Open the Administration panel in Promo / Messenger.
- In the left sidebar, navigate to Customise and Templates.
- Click New Template and then Email Template from the drop-down menu.
- Give your template a Name, such as "SMS Forward Email" (for example).
- Press tab to automatically generate an API name (e.g. sms_forward_email).
- Click into the Content editor to select it.
- Click the Insert Variable drop-down and select Inbound message.
- Click the new Insert Variable drop-down and click body.
- This will insert the Liquid variable
{{inbound_message.body}}into your content field. - Click Create Template.
See below for more information on the Liquid variables you can include.
Liquid Variables
Values from the Inbound Message being forwarded can be included using Liquid variables into the Template of your email body, as well as the "Subject", "Sender", and "Destination" options. The below liquid tags are available:
{{inbound_message.channel}}: The name of the inbound message channel, such as "sms", "mms", "whatsapp", etc.
{{inbound_message.keyword_id}}: The ID of a keyword that the inbound message was matched to.
{{inbound_message.filtered}}: true if the message was filtered by a Message Filter (filtered messages are still forwarded).
{{inbound_message.body}}: The body / text of the message.
{{inbound_message.approved?}}: true or false indicating whether the Message has been approved by a user.
{{inbound_message.from_number}}: The phone number the Message came from in full E.164 format.
{{inbound_message.to_number}}: The phone number the Message was sent to in full E.164 format.
{{inbound_message.highlighted?}}: Deprecated.
