Transports
Loops
Send template-based transactional email through Loops.
Send template-based transactional email through Loops.
The one rule
Create this transport under the matching sently channel sender.
Configuration
| Option | Type | Default or requirement |
|---|---|---|
apiKey | string | required |
defaultTransactionalId | string | optional |
import { createMailer } from "sently/mailer";
import { LoopsTransport } from "sently/transports/loops";
const sender = createMailer({ transport: new LoopsTransport({ apiKey: process.env.LOOPS_API_KEY!, defaultTransactionalId: "cl..." }) });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.