mail

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: May 4, 2016 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sender

type Sender struct {
	From        string
	SMTPhost    string
	SMTPport    int
	FrontURI    string
	InsecureTLS bool
	Password    string
	Username    string
}

Sender implements moira sender interface via pushover

func (*Sender) Init

func (sender *Sender) Init(senderSettings map[string]string, logger *logging.Logger) error

Init read yaml config

func (*Sender) MakeMessage

func (sender *Sender) MakeMessage(events notifier.EventsData, contact notifier.ContactData, trigger notifier.TriggerData, throttled bool) *gomail.Message

MakeMessage prepare message to send

func (*Sender) SendEvents

func (sender *Sender) SendEvents(events notifier.EventsData, contact notifier.ContactData, trigger notifier.TriggerData, throttled bool) error

SendEvents implements Sender interface Send

func (*Sender) SetLogger

func (sender *Sender) SetLogger(logger *logging.Logger)

SetLogger for test purposes

Jump to

Keyboard shortcuts

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