Documentation ¶
Index ¶
- Constants
- func CreateUserActiveCode(u *models.User, startInf interface{}) string
- func GetMailTmplData(u *models.User) map[interface{}]interface{}
- func NewMailerContext()
- func Send(msg *Message) (int, error)
- func SendActiveMail(r macaron.Render, u *models.User)
- func SendAsync(msg *Message)
- func SendCollaboratorMail(r macaron.Render, u, owner *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 SendRegisterMail(r macaron.Render, u *models.User)
- func SendResetPasswdMail(r macaron.Render, u *models.User)
- type Message
Constants ¶
View Source
const ( AUTH_ACTIVE base.TplName = "mail/auth/active" AUTH_REGISTER_SUCCESS base.TplName = "mail/auth/register_success" 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 CreateUserActiveCode ¶
create a time limit code for user active
func GetMailTmplData ¶
func NewMailerContext ¶
func NewMailerContext()
func SendActiveMail ¶
Send email verify active email.
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 SendRegisterMail ¶
Send user register mail with active code
Types ¶
type Message ¶
type Message struct { To []string From string Subject string Body string User string Type string Massive bool Info string }
func NewHtmlMessage ¶
Create html mail message
func NewMailMessage ¶
Create New mail message use MailFrom and MailUser
func NewMailMessageFrom ¶
Create New mail message use MailFrom and MailUser
Click to show internal directories.
Click to hide internal directories.