mail

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mail

type Mail struct {
	From string

	// 邮件授权码
	AuthCode string

	// QQ 邮箱: SMTP 服务器地址:smtp.qq.com(SSL协议端口:465/587, 非SSL协议端口:25)
	// 163 邮箱:SMTP 服务器地址:smtp.163.com(SSL协议端口:465/994,非SSL协议端口:25)
	Host string
	Port int
	C    *gomail.Dialer
	Msg  *gomail.Message
}

func NewMail

func NewMail(host, from, auth string, port int) *Mail

func (*Mail) Conn

func (m *Mail) Conn() *Mail

func (*Mail) HtmlBody

func (m *Mail) HtmlBody(body string) *Mail

func (*Mail) Send

func (m *Mail) Send(to string) error

func (*Mail) SendMore

func (m *Mail) SendMore(to []string) error

func (*Mail) Title

func (m *Mail) Title(title string) *Mail

Jump to

Keyboard shortcuts

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