Riley Goodman
Riley Goodman

Reputation: 13

Get an email on inbound message with Twilio

I am currently using a Twilio phone number with ShortySMS for some SMS marketing. When a customer responds (sends me an inbound message), I want to get an email. How can I accomplish this?

Upvotes: 0

Views: 222

Answers (1)

Devin Rader
Devin Rader

Reputation: 10366

Twilios Code Exchange has a Quick Deploy option for this scenario. The Quick Deploy uses SendGrid as the mail sender so you'll need to have a SendGrid account in addition to your Twilio account.

The Quick Deploy utilizes a Twilio Function to run the code needed to take the incoming SMS message from Twilio, craft an email message and send it using the SendGrid API. The code for that function is located in a public Github repository if you want to take a look at what its doing.

If you use the Quick Deploy, once the function is created you can then customize its code if you want to change the default templates behavior.

Upvotes: 1

Related Questions