Enable template selection on admin single/bulk and scheduled emails, send welcome emails only after email registration OTP verification, and use the password_reset template for email-based reset links. Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
610 B
Go
13 lines
610 B
Go
package domain
|
|
|
|
// OutboundEmailContent describes how to build an outbound email body.
|
|
// When TemplateSlug is set, the email is rendered from the matching email template.
|
|
// Otherwise Subject/Message/HTML are sent as-is (legacy free-form emails).
|
|
type OutboundEmailContent struct {
|
|
TemplateSlug string `json:"email_template_slug,omitempty"`
|
|
TemplateVariables map[string]any `json:"template_variables,omitempty"`
|
|
Subject string `json:"subject,omitempty"`
|
|
Message string `json:"message,omitempty"`
|
|
HTML string `json:"html,omitempty"`
|
|
}
|