Documentation
¶
Overview ¶
Package email implements a service for sending emails.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrEmptyUsername is returned when the username is empty. ErrEmptyUsername = errors.New("username cannot be empty") // ErrEmptyPassword is returned when the password is empty. ErrEmptyPassword = errors.New("password cannot be empty") // ErrEmptyHost is returned when the host is empty. ErrEmptyHost = errors.New("host cannot be empty") // ErrEmptyPort is returned when the port is empty. ErrEmptyPort = errors.New("port cannot be empty") // ErrEmptyLogger is returned when the logger is nil. ErrEmptyLogger = errors.New("logger cannot be nil") )
Functions ¶
This section is empty.
Types ¶
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
Sender is a struct that contains all the configuration of the email sender.
func (*Sender) SendChangedPasswordEmail ¶
SendChangedPasswordEmail sends an email notifying the user that their password has been changed.
func (*Sender) SendSignUpEmail ¶
SendSignUpEmail sends an email with a temporary password to the user.
Click to show internal directories.
Click to hide internal directories.