Documentation ¶
Index ¶
- Constants
- func ComposeTplData(u *models.User) map[interface{}]interface{}
- func LoginAuth(username, password string) smtp.Auth
- func NewContext()
- func SendActivateAccountMail(c *macaron.Context, u *models.User)
- func SendActivateEmailMail(c *macaron.Context, u *models.User, email *models.EmailAddress)
- func SendAsync(msg *Message)
- func SendCollaboratorMail(r macaron.Render, u, doer *models.User, repo *models.Repository) error
- func SendIssueMentionMail(r macaron.Render, u, owner *models.User, repo *models.Repository, ...) error
- func SendIssueNotifyMail(u, owner *models.User, repo *models.Repository, issue *models.Issue) ([]string, error)
- func SendRegisterNotifyMail(c *macaron.Context, u *models.User)
- func SendResetPasswordMail(c *macaron.Context, u *models.User)
- func SendUserMail(c *macaron.Context, u *models.User, tpl base.TplName, ...)
- type Message
- type Sender
Constants ¶
View Source
const ( AUTH_ACTIVATE base.TplName = "mail/auth/activate" AUTH_ACTIVATE_EMAIL base.TplName = "mail/auth/activate_email" AUTH_REGISTER_NOTIFY base.TplName = "mail/auth/register_notify" AUTH_RESET_PASSWORD base.TplName = "mail/auth/reset_passwd" NOTIFY_COLLABORATOR base.TplName = "mail/notify/collaborator" NOTIFY_MENTION base.TplName = "mail/notify/mention" )
Variables ¶
This section is empty.
Functions ¶
func ComposeTplData ¶ added in v0.6.15
func NewContext ¶ added in v0.6.15
func NewContext()
func SendActivateAccountMail ¶ added in v0.6.15
func SendActivateEmailMail ¶ added in v0.6.15
SendActivateAccountMail sends confirmation e-mail.
func SendCollaboratorMail ¶ added in v0.4.0
SendCollaboratorMail sends mail notification to new collaborator.
func SendIssueMentionMail ¶ added in v0.3.0
func SendIssueMentionMail(r macaron.Render, u, owner *models.User, repo *models.Repository, issue *models.Issue, tos []string) error
SendIssueMentionMail sends mail notification for who are mentioned in issue.
func SendIssueNotifyMail ¶ added in v0.3.0
func SendIssueNotifyMail(u, owner *models.User, repo *models.Repository, issue *models.Issue) ([]string, error)
SendIssueNotifyMail sends mail notification of all watchers of repository.
func SendRegisterNotifyMail ¶ added in v0.6.15
SendRegisterNotifyMail triggers a notify e-mail by admin created a account.
func SendResetPasswordMail ¶ added in v0.6.15
SendResetPasswordMail sends reset password e-mail.
Types ¶
type Message ¶
type Message struct { Info string // Message information for log purpose. *gomail.Message }
func NewMessage ¶ added in v0.6.15
NewMessage creates new mail message object with default From header.
func NewMessageFrom ¶ added in v0.6.15
NewMessageFrom creates new mail message object with custom From header.
Click to show internal directories.
Click to hide internal directories.