Versions in this module Expand all Collapse all v0 v0.11.19 Jun 10, 2017 v0.11.4 Apr 5, 2017 Changes in this version + const MAIL_AUTH_ACTIVATE + const MAIL_AUTH_ACTIVATE_EMAIL + const MAIL_AUTH_REGISTER_NOTIFY + const MAIL_AUTH_RESET_PASSWORD + const MAIL_ISSUE_COMMENT + const MAIL_ISSUE_MENTION + const MAIL_NOTIFY_COLLABORATOR + func InitMailRender(dir, appendDir string, funcMap []template.FuncMap) + func LoginAuth(username, password string) smtp.Auth + func NewContext() + func SendActivateAccountMail(c *macaron.Context, u User) + func SendActivateEmailMail(c *macaron.Context, u User, email string) + func SendAsync(msg *Message) + func SendCollaboratorMail(u, doer User, repo Repository) + func SendIssueCommentMail(issue Issue, repo Repository, doer User, tos []string) + func SendIssueMentionMail(issue Issue, repo Repository, doer User, tos []string) + 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, code, subject, info string) + type Issue interface + Content func() string + HTMLURL func() string + MailSubject func() string + type MailRender interface + HTMLString func(string, interface{}, ...macaron.HTMLOptions) (string, error) + type Message struct + Info string + func NewMessage(to []string, subject, body string) *Message + func NewMessageFrom(to []string, from, subject, htmlBody string) *Message + type Repository interface + ComposeMetas func() map[string]string + FullName func() string + HTMLURL func() string + 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