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');