Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BaseTmpl string
BaseTmpl represents the base template used by emails.
View Source
var ErrFakeSenderFailure = errors.New("fake sender failure")
ErrFakeSenderFailure represents a fake sender failure.
View Source
var ErrSenderNotAvailable = errors.New("email sender not available")
ErrSenderNotAvailable error indicates that there is not a mail sender available. This usually happens when the email configuration hasn't been set up.
Functions ¶
This section is empty.
Types ¶
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
Sender is in charge of sending emails.
type SenderMock ¶
SenderMock is a mock implementation of the hub EmailSender interface.
func (*SenderMock) SendEmail ¶
func (m *SenderMock) SendEmail(data *Data) error
SendEmail implements the EmailSender interface.
Click to show internal directories.
Click to hide internal directories.