This project is a small Ruby server that receives incoming SMS callbacks from Twilio and forwards the contents to a specified email address.
- deploy it to a web server
- pass the
MAIL_FROM
andMAIL_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
tosendgrid
. The script will then expect theSENDGRID_USERNAME
,SENDGRID_PASSWORD
andSENDGRID_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.
If you want to deploy the webapp to your Heroku account, simply click the button below:
Created by Kuba Suder, licensed under VSPL (Very Simple Public License).