Skip to content

cpfair/voipms-sms-email-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VOIP.ms SMS-Email Gateway

Lets you send and receive SMS messages from your VOIP.ms account via email.

Requirements

  • Python
  • A VOIP.ms account
  • A Mailgun account
  • A (sub)domain to send and receive emails with, set up with Mailgun

Setup

  1. Rename settings.example.py to settings.py and fill in the blanks as directed.
  2. Set up the web server at, say, sms.yoursite.com.
  3. Add https://sms.yoursite.com/hook/< HOOK_URL_KEY >/sms?to={TO}&from={FROM}&message={MESSAGE}&id={ID}&date={TIMESTAMP} as an "SMS URL Callback" in the VOIP.ms DID settings, replacing < HOOK_URL_KEY > with the value from settings.py. Enable "URL Callback Retry" at the same time.
  4. Add a catch-all route to the Mailgun domain, POSTing to https://sms.yoursite.com/hook/< HOOK_URL_KEY >/email performing the same replacement of < HOOK_URL_KEY >.

Usage

New SMS messages will be sent to the email specified in settings.py. You can reply to these messages to reply to the SMS's sender. You can also initiate a conversation directly by sending a new email to < recipient phone # >@youremaildomain.com.

About

An SMS-Email gateway for VOIP.ms accounts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages