Skip to content
This repository has been archived by the owner on Sep 2, 2020. It is now read-only.

A simple Ruby server that receives SMS callbacks from Twilio and forwards them to email

Notifications You must be signed in to change notification settings

mackuba/twilio-sms-to-email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twilio SMS-to-email service

This project is a small Ruby server that receives incoming SMS callbacks from Twilio and forwards the contents to a specified email address.

Installation

  • deploy it to a web server
  • pass the MAIL_FROM and MAIL_TO environment variables to the script somehow (e.g. in server start scripts or nginx config, that depends on your configuration)
  • set the incoming SMS URL in Twilio configuration to http://someserver/somepath/sms (the URL to this script once you've deployed it)
  • if you wish to use SendGrid for emails, set EMAIL_MODE to sendgrid. The script will then expect the SENDGRID_USERNAME, SENDGRID_PASSWORD and SENDGRID_DOMAIN environment variables to be configured (these are set automatically on Heroku if you use the deploy button below). Otherwise, the script will default to using sendmail on your server.

Deployment to Heroku

If you want to deploy the webapp to your Heroku account, simply click the button below:

Deploy

Credits

Created by Kuba Suder, licensed under VSPL (Very Simple Public License).

About

A simple Ruby server that receives SMS callbacks from Twilio and forwards them to email

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages