Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mailer ¶
type Mailer interface { // ValidateEmail returns nil if the email is valid, otherwise an error // indicating the reason it is invalid. ValidateEmail(email string) error // Send can be used to send one-off emails to users. Send(user *user.User, subject, body string, data map[string]interface{}) error // ConfirmationMail sends a signup confirmation mail to a new user. ConfirmationMail(user *user.User, referrerURL string) error // RecoveryMail sends a password recovery mail. RecoveryMail(user *user.User, referrerURL string) error // EmailChangeMail sends an email change confirmation mail to a user. EmailChangeMail(user *user.User, referrerURL string) error }
Mailer defines the interface a mailer must implement.
Click to show internal directories.
Click to hide internal directories.