Documentation ¶
Index ¶
Constants ¶
View Source
const ( GMAIL = "gmail" YAHOO = "yahoo" OUTLOOK = "outlook" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mail ¶
type Mail struct { From string To []string Headers map[string]string Subject string Body string IsHtml bool }
type MailSender ¶
type MailServer ¶
type MailServer struct { Sender MailSender Auth smtp.Auth }
func NewMailServer ¶
func NewMailServer(email, password, provider string) *MailServer
func NewMailServerFromSender ¶ added in v0.1.1
func NewMailServerFromSender(sender MailSender) *MailServer
func (*MailServer) SendMail ¶
func (s *MailServer) SendMail(mail *Mail) error
Click to show internal directories.
Click to hide internal directories.