Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatEmailReport ¶
func FormatEmailReport(articles []store.ArticleWithAnalysis, trends *ai.TrendReport, window, unsubscribeToken, siteURL string) string
FormatEmailReport builds an HTML email body from analyzed articles and trends.
func GenerateToken ¶
GenerateToken generates a random unsubscribe token.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client sends HTML emails via SMTP.
func (*Client) SendWelcome ¶ added in v1.0.3
SendWelcome sends a welcome / subscription-confirmation email.
Click to show internal directories.
Click to hide internal directories.