- JavaScript
- Python
Installing the SDK
Sending an email
Various email parameters can be configured in the Console such as tracking, custom domains, and more.Send withhtml, text, or both at the top level:Response
Unique identifier for the sent email, used for tracking delivery status and analytics.
Request metadata including ID, timestamp, and API version.
react option and see the JS SDK Email docs.Parameters
email.send(params)
The recipient’s email address or an array of email addresses.
The sender’s email address. Can include a display name:
"Your App <no-reply@yourapp.com>"The email subject line.
HTML version of the email (JS: top-level; Python: top-level). Use with
text and/or react (JS) as needed.Plain text version of the email.
JS only. A React Email component; the SDK renders it to HTML and plain text. See JS SDK Email.
JS only, deprecated. Use top-level
html, text, and react instead. Still supported: body: { text?, html?, react? }.Email address for replies. If not specified, replies will go to the
from address.Carbon copy recipients. Can be a single email address or an array of addresses.
Blind carbon copy recipients. Can be a single email address or an array of addresses.
Custom email headers as an array of objects with
name and value properties.