Send SMS Notifications from a Browser
- SMS
- JavaScript
- .NET
- PHP
- Python
- Java
- Popular
Info
Regulations require that you first register your number to use these resources to send SMS traffic to US and Canadian mobile destinations. If you are sending to Canada or the US and have not already done so, please see our documentation to register your Twilio phone number or Toll-Free number before you use this template.
Automate your workflows and send SMS notifications using Twilio Programmable Messaging. This project shows how to do so with an example app: a vacation rental site. Specifically, the host can notify guests of a reservation via text message.
How the application's workflow works
- A host creates a vacation property listing through the website
- A guest requests a reservation for a property through the website
- The host receives an SMS notifying them of the reservation request
- The host can either accept or reject the reservation by responding to the SMS
- The guest is notified via SMS whether their request was rejected or accepted
- Choose a language
This project is available in multiple programming languages.
- Get the code for this project
The code for this sample is available on GitHub to view and download.
- Get Twilio credentials
You will need an Account SID and Auth Token in order to run this code.
Checking for existing account...
- Set up the code sample locally
Follow the setup instructions in the README to get the sample up and running.