Documentation ¶
Index ¶
- func CreateUserActiveCode(user *models.User, startInf interface{}) string
- func GetMailTmplData(user *models.User) map[interface{}]interface{}
- func NewMailerContext()
- func Send(msg *Message) (int, error)
- func SendActiveMail(r *middleware.Render, user *models.User)
- func SendAsync(msg *Message)
- func SendCollaboratorMail(r *middleware.Render, user, owner *models.User, repo *models.Repository) error
- func SendIssueMentionMail(r *middleware.Render, user, owner *models.User, repo *models.Repository, ...) error
- func SendIssueNotifyMail(user, owner *models.User, repo *models.Repository, issue *models.Issue) ([]string, error)
- func SendRegisterMail(r *middleware.Render, user *models.User)
- func SendResetPasswdMail(r *middleware.Render, user *models.User)
- type Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUserActiveCode ¶
create a time limit code for user active
func GetMailTmplData ¶
func NewMailerContext ¶
func NewMailerContext()
func SendActiveMail ¶
func SendActiveMail(r *middleware.Render, user *models.User)
Send email verify active email.
func SendCollaboratorMail ¶ added in v0.4.0
func SendCollaboratorMail(r *middleware.Render, user, owner *models.User, repo *models.Repository) error
SendCollaboratorMail sends mail notification to new collaborator.
func SendIssueMentionMail ¶ added in v0.3.0
func SendIssueMentionMail(r *middleware.Render, user, 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(user, owner *models.User, repo *models.Repository, issue *models.Issue) ([]string, error)
SendIssueNotifyMail sends mail notification of all watchers of repository.
func SendRegisterMail ¶
func SendRegisterMail(r *middleware.Render, user *models.User)
Send user register mail with active code
func SendResetPasswdMail ¶ added in v0.3.0
func SendResetPasswdMail(r *middleware.Render, user *models.User)
Send reset password email.
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.