mail

package
v1.0.27 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: MIT Imports: 4 Imported by: 1

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