Documentation ¶
Overview ¶
Package email provides email sending functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentLoginToken ¶
ContentLoginToken defines content for login token email template.
type Mailer ¶
type Mailer struct {
// contains filtered or unexported fields
}
Mailer is a SMTP mailer.
func (*Mailer) LoginToken ¶
func (m *Mailer) LoginToken(name, address string, content ContentLoginToken) error
LoginToken creates and sends a login token email with provided template content.
type MockMailer ¶
type MockMailer struct { LoginTokenFn func(name, email string, c ContentLoginToken) error LoginTokenInvoked bool }
MockMailer is a mock Mailer
func (*MockMailer) LoginToken ¶
func (s *MockMailer) LoginToken(n, e string, c ContentLoginToken) error
LoginToken is a mock for LoginToken
Click to show internal directories.
Click to hide internal directories.