Documentation ¶ Index ¶ func MailContent(mailType MailType, magicLink string) (subject, content string) func Send(email Mail, mailType MailType) error type Mail type MailType Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func MailContent ¶ func MailContent(mailType MailType, magicLink string) (subject, content string) MailContent is a struct for mail content. func Send ¶ func Send(email Mail, mailType MailType) error Send sends a mail by smtp. Types ¶ type Mail ¶ type Mail struct { To string ToName string Cc []string // contains filtered or unexported fields } Mail is a struct for mail. type MailType ¶ type MailType int MailType is a type for mail type. const ( MailLogin MailType = iota // MailLogin is a mail type for login. MailChange // MailChange is a mail type for change email. MailVerify // MailVerify is a mail type for verify email. ) Source Files ¶ View all Source files mail.go Click to show internal directories. Click to hide internal directories.