Versions in this module Expand all Collapse all v0 v0.1.1 Jul 27, 2017 v0.1.0 Jul 24, 2017 Changes in this version + const MAIL_AUTH_ACTIVATE + const MAIL_AUTH_ACTIVATE_EMAIL + const MAIL_AUTH_REGISTER_NOTIFY + const MAIL_AUTH_RESET_PASSWORD + func InitMail(activeCodeLives, resetPwdCodeLives int, renderOption *macaron.RenderOptions, ...) + func LoginAuth(username, password string) smtp.Auth + func SendActivateAccountMail(c *macaron.Context, u User) + func SendActivateEmailMail(c *macaron.Context, u User, email string) + func SendAsync(msg *Message) + func SendRegisterNotifyMail(c *macaron.Context, u User) + func SendResetPasswordMail(c *macaron.Context, u User) + func SendTestMail(email string) error + func SendUserMail(c *macaron.Context, u User, tpl infrastructure.TplName, ...) + type MailRender interface + HTMLString func(string, interface{}, ...macaron.HTMLOptions) (string, error) + type Mailer struct + CertFile string + DisableHelo bool + EnableHTMLAlternative bool + From string + FromEmail string + HeloHostname string + Host string + KeyFile string + Name string + Passwd string + QueueLength int + SkipVerify bool + UseCertificate bool + User string + type Message struct + Info string + func NewMessage(to []string, subject, body string) *Message + func NewMessageFrom(to []string, from, subject, htmlBody string) *Message + type Sender struct + func (s *Sender) Send(from string, to []string, msg io.WriterTo) error + type User interface + DisplayName func() string + Email func() string + GenerateActivateCode func() string + GenerateEmailActivateCode func(string) string + ID func() int64