smtpClient

package
v0.0.0-...-32a469f Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package smtp implements an email notification handler for statemonitor.

See example configuration in the ConfigExample constant.

Index

Constants

View Source
const (

	// ConfigExample is an example configuration.
	ConfigExample = `` /* 242-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func LoginAuth

func LoginAuth(username, password string) smtp.Auth

Types

type SMTP

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

SMTP handler implements handler.Handler interface, Notify event via email.

func (*SMTP) Handle

func (s *SMTP) Handle(e event.StatemonitorEvent)

Handle handles the notification.

func (*SMTP) Init

func (s *SMTP) Init(c *config.Config) error

Init prepares Webhook configuration

Jump to

Keyboard shortcuts

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