referenceEmail
Send transactional email through your project’s configured provider (e.g. AWS SES).
Published: September 6, 2026Updated: September 6, 2026
Send a transactional email using your project’s configured email provider (e.g. AWS SES), configured per-project from the dashboard.
Server note: SES SMTP authentication with raw IAM access keys (
ses_access_key_id/ses_secret_access_key) requires Postbase server ≥ 0.3.6. Earlier server versions sent the raw IAM secret access key as the SMTP password instead of deriving the SigV4-based SES SMTP password, causing535 Authentication Credentials Invalid. Upgrade your Postbase server instance if you see this error.
const { data, error } = await postbase.email.send({
to: 'user@example.com',
subject: 'Welcome!',
text: 'Hello there',
html: '<p>Hello there</p>',
})
// data.ok