Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DefaultSender ¶
type DefaultSender struct {
// contains filtered or unexported fields
}
DefaultSender implements the Sender interface.
func NewSender ¶
func NewSender(c config.SMTP) DefaultSender
NewSender returns a new DefaultSender that uses the given SMTP config.
func (DefaultSender) Send ¶
func (sender DefaultSender) Send(to, subject, body string) error
Send sends the given body to the to address with the given subject.
Click to show internal directories.
Click to hide internal directories.