mail

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 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 Mail

type Mail struct {
	Nickname string `json:"nickname"`
	User     string `json:"user"`
	Password string `json:"password"`
	Host     string `json:"host"`
	Port     string `json:"port"`
}

Mail 邮件配置

func (*Mail) Auth

func (m *Mail) Auth() smtp.Auth

Auth 身份认证

func (*Mail) SendMail

func (m *Mail) SendMail(subject string, to []string, body string) (err error)

SendMail 发送邮件

Jump to

Keyboard shortcuts

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