Lets you send and receive SMS messages from your VOIP.ms account via email.
- Python
- A VOIP.ms account
- A Mailgun account
- A (sub)domain to send and receive emails with, set up with Mailgun
- Rename
settings.example.py
tosettings.py
and fill in the blanks as directed. - Set up the web server at, say,
sms.yoursite.com
. - 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 fromsettings.py
. Enable "URL Callback Retry" at the same time. - 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 >
.
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
.