sgmail

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseGlobalMailSender added in v1.0.5

func CloseGlobalMailSender()

func IsRunning added in v1.0.5

func IsRunning() bool

func IsStop added in v1.0.5

func IsStop() bool

func NewSender added in v1.0.5

func NewSender(cfg *MailCfg) error

func SendMail

func SendMail(subject string, tolist []string, body string)

Types

type MailCfg added in v1.0.5

type MailCfg struct {
	Name     string `json:"name"`
	User     string `json:"user"`
	Password string `json:"pwd"`
	SMTP     string `json:"smtp"`
	Port     string `json:"port"`
	UseTLS   bool   `json:"useTLS"`
}

func ReadCfg added in v1.0.6

func ReadCfg(filename string) (*MailCfg, error)

Jump to

Keyboard shortcuts

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