Skip to main content
This is a detailed reference for email-related types in Hexclave. If you’re looking for a more high-level overview, please refer to our guide on the email system.

SendEmailOptions

Options for sending emails via the sendEmail method on HexclaveServerApp.

Table of Contents

Recipients

You must provide exactly one of userIds or allUsers.

Content

You must provide exactly one of html, templateId, or draftId.

Options

Usage

Choose a content method (html, templateId, or draftId) and a recipient method (userIds or allUsers):
Provide custom HTML directly:
await hexclaveServerApp.sendEmail({
  userIds: ["user-id-1"],
  subject: "Hello!",
  html: "<h1>Welcome</h1><p>Thanks for signing up!</p>",
});
The notificationCategoryName, themeId, scheduledAt, and variables properties work independently with any content method.