Documentation
¶
Overview ¶
Package mailer sends emails via gmail asynchronously.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mailer ¶
type Mailer struct {
// contains filtered or unexported fields
}
Mailer sends emails asynchronously via gmail.
func New ¶
New creates a new instance. emailId and password are the gmail sender address and password respectively.
func (*Mailer) Send ¶
Send sends one email asynchronously returning immediately. When it eventually sends the email, it reports any errors to stderr.
func (*Mailer) SendFuture ¶ added in v0.13.0
SendFuture sends one email asynchronously returning immediately. Caller must use returned channel to get the result of the send.
Click to show internal directories.
Click to hide internal directories.