Transports

MailerSend

Send email through the MailerSend HTTP API.

Send email through the MailerSend HTTP API.

The one rule

Create this transport under the matching sently channel sender.

Configuration

OptionTypeDefault or requirement
apiTokenstringrequired
import { createMailer } from "sently/mailer";
import { MailerSendTransport } from "sently/transports/mailersend";

const sender = createMailer({ transport: new MailerSendTransport({ apiToken: process.env.MAILERSEND_API_TOKEN! }) });
await sender.send({ from: "hello@example.com", to: "person@example.com", subject: "Hello", text: "Hi" });

On this page