...

Package email

import "github.com/prometheus/alertmanager/notify/email"
Overview
Index

Overview ▾

func LoginAuth

func LoginAuth(username, password string) smtp.Auth

type Email

Email implements a Notifier for email notifications.

type Email struct {
    // contains filtered or unexported fields
}

func New

func New(c *config.EmailConfig, t *template.Template, l log.Logger) *Email

New returns a new Email notifier.

func (*Email) Notify

func (n *Email) Notify(ctx context.Context, as ...*types.Alert) (bool, error)

Notify implements the Notifier interface.