Skip to content
You're viewing documentation for v1.0.0. It may be out of date.Go to latest
Email SDK
Esc
↑↓navigate↵open⌘Jpreview
On this page

Provider credentials

Configure adapter credentials in the server environment and verify required values with the CLI.

Credentials belong in the server process that constructs the adapter. Email SDK does not read a universal configuration file or expose credentials to browser code.

Required environment variables

Run the adapter catalog to see the names required by the bundled CLI.

Common adapters use these values:

Adapter Required environment variables
Resend RESEND_API_KEY
Postmark POSTMARK_SERVER_TOKEN
SendGrid SENDGRID_API_KEY
AWS SES AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION
Mailgun MAILGUN_API_KEY, MAILGUN_DOMAIN
Cloudflare CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID
SMTP SMTP_HOST; auth also uses SMTP_USER and SMTP_PASS

The adapter pages list every credential and adapter-specific option.

Pass credentials to application code

Adapter factories accept credentials explicitly. Environment variable names are a deployment convention rather than a hidden SDK lookup.

Check configuration

doctor checks whether the CLI has enough values to construct the adapter. It does not prove that a credential is accepted by the provider.

Use send --dry-run to validate a full message without network delivery. Use a real send only with an approved test recipient.

SMTP transport security

SMTP auth on a non-secure port requires TLS. The transport upgrades with STARTTLS by default. Set allowInsecureAuth only for a trusted local test server.

Browse adapters

Open the setup page for the provider you use.

CLI doctor

See exact configuration checks and failure modes.

Last updated on