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"` }