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
| Option | Type | Default or requirement |
|---|---|---|
bearerToken | string | required |
campaignName | string | required |
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" });No. Use the sently sender; provider-specific extras stay on the transport instance.