• Home
  • >
  • Forward SMS to Email

Forward SMS to Email

By Twilio

  • Email
  • Twilio
  • Host on Twilio
  • Applications

Takes incoming SMS and forward them to a specified email adress using Twilio SendGrid.

Every email will include the phone number of the sender in the subject line and the message body of the SMS will be the email message body.

There is currently no support for responding via email.

Functions
Functions with CLI

Step 1:

Access serverless version of this code on GitHub.

View on GitHub

Step 2:

Use this code sample in Twilio Functions UI to deploy on Twilio infrastructure.

Read instructions
Why use Twilio Functions?
No server management
Scales automatically
Easy to build proof of concepts
Secure by default

Step 1:

Install Node JS

https://nodejs.org/en/download

Step 2:

Install Twilio CLI

Learn more
npm install -g twilio-cli

Step 3:

Install CLI plugins

twilio plugins:install @twilio-labs/plugin-serverless

Step 4:

You need a account SID and auth token to get started.

Get a free API key
twilio login

Step 5:

Download the template and configure

twilio serverless:init example --template=forward-message-sendgrid

Step 6:

Host on Twilio with this command

cd example
twilio serverless:deploy
Why use Twilio Functions?
No server management
Scales automatically
Easy to build proof of concepts
Secure by default
Why use the Twilio CLI?
Fits in your DevOps flow
Version control
Use CLI to run on multiple environments (Dev, Stage, Prod)

Don't see what you want?

There was an issue loading the page.

Please try again in some time.