emails

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultEmail    = "demo@163.com"
	DefaultPassword = "123456"
	DefaultHost     = "smtphm.qiye.163.com"
	DefaultPort     = 25
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EMail

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

func (*EMail) Init

func (e *EMail) Init(options ...Option)

func (*EMail) SendEmail

func (e *EMail) SendEmail(receiver []string, subject string, content string, reSendCount int, attachPath []string) (err error)

SendEmail 发送邮件 receiver: 接收者列表 subject: 邮件主题 content: 邮件正文内容 attachPath: 附件文件路径列表 reSendCount: 失败重试次数

type Option

type Option func(*Options)

func Email

func Email(email string) Option

func Host

func Host(host string) Option

func Password

func Password(password string) Option

func Port

func Port(port int) Option

type Options

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

Jump to

Keyboard shortcuts

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