Transports
Amazon SES
Send email through the AWS SES v2 API.
Send email through the AWS SES v2 API.
The one rule
Create this transport under the matching sently channel sender.
Configuration
| Option | Type | Default or requirement |
|---|---|---|
accessKeyId | string | required |
secretAccessKey | string | required |
region | string | us-east-1 |
sessionToken | string | optional |
dkim | DKIMConfig | optional |
import { createMailer } from "sently/mailer";
import { SESTransport } from "sently/transports/ses";
const sender = createMailer({ transport: new SESTransport({ accessKeyId: "...", secretAccessKey: "..." }) });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.