Documentation ¶
Index ¶
- Constants
- 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 base.TplName, code, subject, info string)
- type Issue
- type MailRender
- type Message
- type Repository
- type Sender
- type User
Constants ¶
View Source
const ( MAIL_AUTH_ACTIVATE base.TplName = "auth/activate" MAIL_AUTH_ACTIVATE_EMAIL base.TplName = "auth/activate_email" MAIL_AUTH_RESET_PASSWORD base.TplName = "auth/reset_passwd" MAIL_AUTH_REGISTER_NOTIFY base.TplName = "auth/register_notify" MAIL_ISSUE_COMMENT base.TplName = "issue/comment" MAIL_ISSUE_MENTION base.TplName = "issue/mention" MAIL_NOTIFY_COLLABORATOR base.TplName = "notify/collaborator" )
Variables ¶
This section is empty.
Functions ¶
func InitMailRender ¶ added in v0.9.128
func NewContext ¶ added in v0.6.15
func NewContext()
func SendActivateAccountMail ¶ added in v0.6.15
func SendActivateAccountMail(c *macaron.Context, u User)
func SendActivateEmailMail ¶ added in v0.6.15
SendActivateAccountMail sends confirmation email.
func SendCollaboratorMail ¶ added in v0.4.0
func SendCollaboratorMail(u, doer User, repo Repository)
SendCollaboratorMail sends mail notification to new collaborator.
func SendIssueCommentMail ¶ added in v0.9.128
func SendIssueCommentMail(issue Issue, repo Repository, doer User, tos []string)
SendIssueCommentMail composes and sends issue comment emails to target receivers.
func SendIssueMentionMail ¶ added in v0.3.0
func SendIssueMentionMail(issue Issue, repo Repository, doer User, tos []string)
SendIssueMentionMail composes and sends issue mention emails to target receivers.
func SendRegisterNotifyMail ¶ added in v0.6.15
func SendRegisterNotifyMail(c *macaron.Context, u User)
SendRegisterNotifyMail triggers a notify e-mail by admin created a account.
func SendResetPasswordMail ¶ added in v0.6.15
func SendResetPasswordMail(c *macaron.Context, u User)
func SendTestMail ¶ added in v0.9.0
Types ¶
type MailRender ¶ added in v0.9.128
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.
type Repository ¶ added in v0.9.128
Click to show internal directories.
Click to hide internal directories.