Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
func InitConfig(conf *EmailConfig) error
func SendEmail ¶
func SendEmail(param EmailParam) error
SendEmail /*
邮件发送示例:
email.SendEmail(email.EmailParam{ To: "hwu@hongdian.com", Data: "8888", MsgCode: msgtype.RegCode.MsgCode, })
func SendEmailByData ¶
SendEmailByData /*
邮件发送示例: email.SendEmailByData(
subject: "邮件主题", content: "邮件内容", to: ["hwu@hongdian.com","hwu2@hongdian.com"], )
func SendEmailByType ¶
func SendEmailByType(param EmailParam, msgType msgtype.MsgType) error
SendEmailByType /*
邮件发送示例:
email.SendEmailByType(email.EmailParam{ To: "hwu@hongdian.com", Data: "8888", },msgtype.MsgType{Msg:'',Name:''})
Types ¶
Click to show internal directories.
Click to hide internal directories.