Documentation
¶
Overview ¶
Package mailview renders branded transactional emails independently of delivery.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Brand ¶
type Brand struct {
Name string
AccentColor string
LogoURL string
WebsiteURL string
SupportEmail string
}
Brand is copied at construction; it contains public presentation settings only.
type Email ¶
type Email struct {
Subject string
Preheader string
Eyebrow string
Title string
Paragraphs []string
Code *Code
Action *Action
Note string
}
Email describes semantic content shared by transactional templates. All strings are escaped in HTML; callers cannot inject raw HTML, CSS, or JavaScript.
Click to show internal directories.
Click to hide internal directories.