Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Usage
import { sendSMS } from 'https://esm.town/v/iamseeley/sendSMS';
sendSMS(phoneNumber: string, message: string, carrier: string): Promise<void>
Parameters
- phoneNumber: The recipient's phone number (string of digits, no spaces or dashes)
- message: The text message you want to send
- carrier: The recipient's cell phone carrier.
Supported carriers: 'att' (AT&T), 'tmobile' (T-Mobile), 'verizon' (Verizon), 'sprint' (Sprint)
List of Email-To-SMS Addresses
Comment on this val if you'd like me to add a carrier from the above list!
Example
import { sendSMS } from 'https://esm.town/v/iamseeley/sendSMS';
sendSMS('1234567890', 'Hello from Val Town!', 'verizon');