func LoginAuth(username, password string) smtp.Auth
Email implements a Notifier for email notifications.
type Email struct {
// contains filtered or unexported fields
}
func New(c *config.EmailConfig, t *template.Template, l log.Logger) *Email
New returns a new Email notifier.
func (n *Email) Notify(ctx context.Context, as ...*types.Alert) (bool, error)
Notify implements the Notifier interface.