smtp

package module
v0.0.0-...-bd2440c Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PlainAuth

func PlainAuth(identity, username, password, host string) smtp.Auth

Types

type Info

type Info struct {
	Server    string
	Host      string
	UserName  string
	Password  string
	FromEmail string
	TLS       *tls.Config
	Extra     map[string]interface{}
}

type Smtp

type Smtp struct {
	Info *Info
	// contains filtered or unexported fields
}

func (*Smtp) Close

func (T *Smtp) Close() error

func (*Smtp) OpenConfig

func (T *Smtp) OpenConfig(file string) error

打开配置文件

func (*Smtp) Send

func (T *Smtp) Send(to []string, title, body string) error

Jump to

Keyboard shortcuts

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