email

package
v0.0.0-...-af6fd84 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier struct {
	User     string
	Password string
	SMTPHost string
	SMTPPort int

	ViaSSL bool
}

func (*Notifier) Send

func (n *Notifier) Send(title string, text string, notifyList []string, headers map[string]string)

func (*Notifier) Validate

func (n *Notifier) Validate() NotifyError

validate smtp server connection & authorize & check ssl status execute on every notifier change

type NotifyError

type NotifyError int
const (
	NoError NotifyError = iota
	ConnectionError
	ProtocolError
	AuthorizeError
)

Jump to

Keyboard shortcuts

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