Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SmtpEmail ¶
type SmtpEmail struct { // SMTP服务器的主机 Host string // SMTP服务器的端口 Port int64 // SMTP服务器的用户名 Username string // SMTP服务器的密码 Password string // InsecureSkipVerify InsecureSkipVerify bool // 签名 SignName string }
func (*SmtpEmail) SendEmail ¶
func (s *SmtpEmail) SendEmail(req SmtpTemplate) error
发送邮件 from: 发件人 mailTo: 收件人 ccTo: 抄送人 subject: 邮件主题 body: 邮件正文 (纯文本或 HTML) attach: 附件 Embed: 嵌入图片
Click to show internal directories.
Click to hide internal directories.