email

package
v0.0.0-...-bd3593b Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEmail

func NewEmail() alarm.Alarm

Types

type Email

type Email struct {
	Auth *smtp.Auth
	// contains filtered or unexported fields
}

func (*Email) ConfigStruct

func (e *Email) ConfigStruct() interface{}

func (*Email) Init

func (e *Email) Init(conf interface{}) error

func (*Email) Send

func (e *Email) Send(i *event.Incident) error

type EmailConfig

type EmailConfig struct {
	Sender     string   `json:"source_email"`
	Recipients []string `json:"dest_emails"`
	Host       string   `json:"host"`
	User       string   `json:"user"`
	Password   string   `json:"password"`
	Port       int      `json:"port"`
}

Jump to

Keyboard shortcuts

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