
Textbelt SMS API
No-nonsense outbound SMS API
textbelt
timconnorz/textbelt
Just deployed
This is a fork of the original TextBelt project by Ian Webster. I made two changes:
- Add basic auth to the server
- Add support for environment variables for easier deployment
You shouldn't have to change anything in the code to get it to work. Just set the environment variables and run the server.
NOTE: You will need an SMTP server to send text messages. This project uses an email-to-text gateway to send text messages. I suggest using SMTP2GO: https://www.smtp2go.com/
The environment variables are:
SMTP_HOST
ex: smtp.gmail.comSMTP_PASSWORD
ex: password123SMTP_USERNAME
ex: adminSMTP_PORT
ex: 587BASIC_AUTH_USERNAME
ex: adminBASIC_AUTH_PASSWORD
ex: password123FROM_NAME
ex: TextBeltFROM_EMAIL
ex: [email protected]
Template Content
textbelt
timconnorz/textbeltFROM_NAME
For the email-to-sms gateway. Anything works
SMTP_HOST
smtp host
SMTP_PORT
smtp port
FROM_EMAIL
An email address with a domain that is verified on your SMTP service
SMTP_PASSWORD
smtp password
SMTP_USERNAME
smtp username
BASIC_AUTH_PASSWORD
Decide on a password required to access your endpoints
BASIC_AUTH_USERNAME
Decide on a username to protect your server