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 InitMail ¶
func InitMail(activeCodeLives, resetPwdCodeLives int, renderOption *macaron.RenderOptions, mailer *Mailer)
func SendActivateAccountMail ¶
func SendRegisterNotifyMail ¶
func SendResetPasswordMail ¶
func SendTestMail ¶
func SendUserMail ¶
Types ¶
type MailRender ¶
type MailRender interface {
HTMLString(string, interface{}, ...macaron.HTMLOptions) (string, error)
}
Click to show internal directories.
Click to hide internal directories.