Documentation ¶
Index ¶
- Constants
- func InitMail(activeCodeLives, resetPwdCodeLives int, renderOption *macaron.RenderOptions, ...)
- func LoginAuth(username, password string) smtp.Auth
- func SendActivateAccountMail(c *macaron.Context, u User)
- func SendActivateEmailMail(c *macaron.Context, u User, email string)
- func SendAsync(msg *Message)
- 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 infrastructure.TplName, ...)
- type MailRender
- type Mailer
- type Message
- type Sender
- type User
Constants ¶
View Source
const ( MAIL_AUTH_ACTIVATE infrastructure.TplName = "auth/activate" MAIL_AUTH_ACTIVATE_EMAIL infrastructure.TplName = "auth/activate_email" MAIL_AUTH_RESET_PASSWORD infrastructure.TplName = "auth/reset_passwd" MAIL_AUTH_REGISTER_NOTIFY infrastructure.TplName = "auth/register_notify" )
Variables ¶
This section is empty.
Functions ¶
func SendActivateAccountMail ¶
func SendActivateAccountMail(c *macaron.Context, u User)
func SendActivateEmailMail ¶
func SendRegisterNotifyMail ¶
func SendRegisterNotifyMail(c *macaron.Context, u User)
func SendResetPasswordMail ¶
func SendResetPasswordMail(c *macaron.Context, u User)
func SendTestMail ¶
func SendUserMail ¶
func SendUserMail(c *macaron.Context, u User, tpl infrastructure.TplName, code, subject, info string)
Types ¶
type MailRender ¶
type Message ¶
type Message struct { Info string *gomail.Message }
func NewMessage ¶
func NewMessageFrom ¶
Click to show internal directories.
Click to hide internal directories.