RezinaLMS-BackEnd/internal/domain/outbound_email.go
Yared Yemane 7836a9f95d feat: wire email templates for outbound, welcome, and password reset flows
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>
2026-06-15 05:17:01 -07:00

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