Documentation
¶
Overview ¶
Package mailer provides a simple SMTP mailer for generated projects. Copy this package into your project — it does not import drp at runtime. Built on net/smtp only; no third-party mail library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WelcomeHTML ¶
WelcomeHTML renders the HTML welcome email body for the given name.
func WelcomeText ¶
WelcomeText renders the plain-text welcome email body for the given name.
Types ¶
type Mailer ¶
Mailer sends transactional emails via SMTP.
func (*Mailer) SendWelcome ¶
SendWelcome is a convenience method that sends the welcome email to a user.
Click to show internal directories.
Click to hide internal directories.