@useatlas/email
v0.0.6
Published
Atlas email action plugin
Maintainers
Readme
@useatlas/email
Send email reports via the Resend API with domain allowlisting and approval controls.
Install
bun add @useatlas/emailUsage
import { defineConfig } from "@atlas/api/lib/config";
import { emailPlugin } from "@useatlas/email";
export default defineConfig({
plugins: [
emailPlugin({
resendApiKey: process.env.RESEND_API_KEY!,
allowedDomains: ["myco.com"],
fromAddress: "Atlas <[email protected]>",
}),
],
});Config
| Field | Type | Default | Description |
|-------|------|---------|-------------|
| resendApiKey | string | — | Resend API key |
| allowedDomains | string[]? | — | Only these recipient domains are permitted |
| fromAddress | string? | Atlas <[email protected]> | Sender address |
| approvalMode | "auto" \| "manual" \| "admin-only" | admin-only | Approval mode for email sends |
