Skip to main content
The Email adapter sends notifications as emails with both plain text and HTML content. It supports three providers: Resend, SendGrid, and SMTP.

Configuration

{
  "type": "email",
  "provider": "resend",
  "apiKey": "${RESEND_API_KEY}",
  "from": "polpo@yourdomain.com",
  "to": ["ops@example.com", "team@example.com"]
}
FieldTypeRequiredDescription
type"email"YesChannel type
provider"resend" | "sendgrid" | "smtp"NoEmail provider (default: resend)
apiKeystringYes (Resend/SendGrid)API key for the provider
tostring[]YesRecipient email addresses
fromstringNoSender address (default: polpo@notifications.local)
hoststringYes (SMTP)SMTP server hostname
portnumberYes (SMTP)SMTP server port
apiKey supports ${ENV_VAR} syntax.

Message Format

Every email is sent in dual format — both text/plain and text/html. The HTML version converts basic markdown formatting: **bold** becomes <strong>, _italic_ becomes <em>, and line breaks become <br>. The email subject is the notification title. The body contains the full notification text.

Attachments

When includeOutcomes: true is set on a notification rule:
  • Resend: binary attachments are base64-encoded and included in the API payload as { filename, content, content_type }
  • SendGrid: binary attachments are base64-encoded as { content, type, filename, disposition: "attachment" }
  • SMTP: binary attachments are not supported — text-only outcomes are appended to the email body
Text-only outcomes (logs, JSON) are always appended to the email body as labeled sections.

Connectivity Test

ProviderTest Method
ResendGET /domains — validates the API key
SendGridGET /scopes — validates the API key
SMTPChecks that host and port are configured (no network call)

Providers

Resend

Resend is the default provider. Simple API, generous free tier (100 emails/day), good deliverability.
  1. Create an account at resend.com
  2. Verify your domain or use the sandbox
  3. Create an API key
  4. Set RESEND_API_KEY in your environment

SendGrid

SendGrid is a well-established email platform with a free tier (100 emails/day).
  1. Create an account at sendgrid.com
  2. Create a Sender Identity
  3. Create an API key with Mail Send permission
  4. Set SENDGRID_API_KEY in your environment

SMTP

Direct SMTP delivery for self-hosted or enterprise mail servers. Requires host and port configuration.
SMTP support requires the nodemailer package. If not installed, the adapter will throw an error with setup instructions.