Quick start

SMS

Send an SMS through a channel sender.

The one rule

Create the SMS sender once, then call send with to and body.
import { createSmsSender } from "sently/sms";
import { TwilioSmsTransport } from "sently/transports/twilio-sms";

const sms = createSmsSender({
  transport: new TwilioSmsTransport({
    accountSid: process.env.TWILIO_ACCOUNT_SID!,
    authToken: process.env.TWILIO_AUTH_TOKEN!,
    from: "+15557654321",
  }),
});
await sms.send({ to: "+15551234567", body: "Your code is ready." });