email

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEmail

func NewEmail() escalation.Escalation

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

Send an email via smtp

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