This is a detailed reference for email-related types in Stack Auth. If you’re looking for a more high-level overview, please refer to our guide on the email system.Documentation Index
Fetch the complete documentation index at: https://stackauth-e0affa27-apps-support.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
SendEmailOptions
Options for sending emails via the sendEmail method on StackServerApp.
Table of Contents
Recipients
You must provide exactly one ofuserIds or allUsers.
Content
You must provide exactly one ofhtml, templateId, or draftId.
Options
Usage
Choose a content method (html, templateId, or draftId) and a recipient method (userIds or allUsers):
- Custom HTML
- Template
- Draft
- Scheduled
Provide custom HTML directly:
The
notificationCategoryName, themeId, scheduledAt, and variables properties work independently
with any content method.