Public
Script
Readme

πŸ’¬ Email-to-SMS

Send text messages on Val Town!

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');
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
June 22, 2024