Overview
The Email resource enables you to send transactional emails with support for HTML, plain text, and React Email components. It includes features like CC, BCC, custom headers, and reply-to addresses.Sending Emails
Send an email with HTML content.Parameters
Recipient email address(es). Can be a single email or an array of up to 10 emails
Sender email address. Must be from a verified domain
Email subject line
HTML content for the email body
Plain text content for the email body
React Email component for dynamic email rendering
Reply-to email address
CC recipient(s). Up to 10 addresses
BCC recipient(s). Up to 10 addresses
Custom email headers
You must provide at least one of:
html, text, or reactReturns
Using React Email Components
Send emails using React components for dynamic, type-safe email templates.When using the
react parameter, the SDK automatically renders the component to both HTML and plain text versions.Advanced Examples
Email with CC and BCC
Email with Custom Headers
Email with Reply-To
Deprecated Body Parameter
Error Handling
Best Practices
- Always provide both HTML and plain text versions for better compatibility
- Use verified sender domains to improve deliverability
- Keep subject lines concise and meaningful
- Limit recipient lists to 10 addresses per request
- Use BCC for mass emails to protect recipient privacy

