Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Email ¶
type Email struct {
SMTPHost string
SMTPPort string
SMTPUser string
SMTPPass string
From string
To []string
Subject string
Body string
IsHTML bool // 是否为HTML正文
InlineImages []InlineImage // 内嵌图片
UseTLS bool // 是否使用TLS
CertFile string // 证书文件路径
KeyFile string // 私钥文件路径
CAFile string // CA证书文件路径(可选)
}
Email 结构体定义了邮件的基本属性
func (*Email) AddInlineImage ¶
AddInlineImage 添加内嵌图片
type InlineImage ¶
InlineImage 结构体定义了内嵌图片的基本属性
Click to show internal directories.
Click to hide internal directories.