quick n' dirty twilio text (sms) to mail python app using postmark app
forwards all incoming text messages to your twilio phone number to a given email address
- get a https://www.twilio.com/ account and get a phone number ($1/month + per sms fee)
- get a https://postmarkapp.com/ account, you'll get 25,000 credits for free. That's about... 25,000 emails.
- retrieve your PostmarkApp API key and add it to
application.py
astoken
- change the
toAddress
andfromAddress
parts inapplicaiton.py
to fit your needs
It's 2017, so run it in a docker container:
docker build -t twilio-sms2mail .
docker run -d -p5000:5000 --name twilio twilio-sms2mail
per default the flask app will listen on port 5000, you can either change the port through docker or use a http reverse proxy like nginx or caddy