mail

package
v0.0.0-...-d6488ed Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoginAuth

func NewLoginAuth(username, password string) smtp.Auth

func SendMail

func SendMail(host string, port int, username string, password string, from string, to []string, subject string, content []byte) (err error)

发送邮件

Types

type LoginAuth

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

func (*LoginAuth) Next

func (a *LoginAuth) Next(fromServer []byte, more bool) ([]byte, error)

func (*LoginAuth) Start

func (a *LoginAuth) Start(server *smtp.ServerInfo) (string, []byte, error)

Jump to

Keyboard shortcuts

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