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 SendNotifyMail(userId, repoId int64, userName, repoName, subject, content string) error
- func SendRegisterMail(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 SendNotifyMail ¶
SendNotifyMail sends mail notification of all watchers.
func SendRegisterMail ¶
func SendRegisterMail(r *middleware.Render, user *models.User)
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.