Transports

Taqnyat Mail

Send email through the Taqnyat Email API.

Send email through the Taqnyat Email API.

The one rule

Create this transport under the matching sently channel sender.

Configuration

OptionTypeDefault or requirement
bearerTokenstringrequired
campaignNamestringrequired
import { createMailer } from "sently/mailer";
import { TaqnyatMailTransport } from "sently/transports/taqnyat-mail";

const sender = createMailer({ transport: new TaqnyatMailTransport({ bearerToken: process.env.TAQNYAT_MAIL_TOKEN!, campaignName: "transactional" }) });
await sender.send({ from: "hello@example.com", to: "person@example.com", subject: "Hello", text: "Hi" });

On this page