tools

package
v0.0.0-...-e5b43e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SMTP

type SMTP struct {
	MailTo   []string // 发送目标
	Subject  string   // 邮寄主题
	Title    string   // 邮寄标题
	Desc     string   // 邮件描述
	Name     string   // 名字
	Email    string   // 邮件
	Position string   // 职位
	Company  string   // 公司
	BtnLink  string   // 按钮链接
	BinText  string   // 按钮文本

}

SMTP ...

func (*SMTP) Send

func (sm *SMTP) Send() (err error)

Send use smtp 邮件

func (*SMTP) SendMail

func (sm *SMTP) SendMail(mailTo []string, subject string, body string) error

SendMail 发送邮件

func (*SMTP) TEM

func (sm *SMTP) TEM() (tem []byte)

TEM 邮件模板

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL