email

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func GetClient

func GetClient(emailCong *MailConnConf) *Client

GetClient 获取邮件客户端

func (*Client) SendMail

func (emailC *Client) SendMail(mailTo []string, subject, body, fileName, filePath string) error

SendMail 发送邮件 mailTo 支持多人发送 subject 信息主体 fileName 附件名称 filePath 文件路径

type MailConnConf

type MailConnConf struct {
	User  string // 发送人邮箱(邮箱以自己的为准)
	Pass  string // 发送人邮箱的密码,现在可能会需要邮箱 开启授权密码后在pass填写授权码
	Host  string // 邮箱服务器
	Alias string // 邮箱发送别名
}

Jump to

Keyboard shortcuts

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