smtp

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigHost               = "smtp_host"
	ConfigPort               = "smtp_port"
	ConfigPassword           = "smtp_password"
	ConfigInsecureSkipVerify = "smtp_insecure_skip_verify"
)

Environment variable keys controlling configuration

Variables

This section is empty.

Functions

func New

func New(host, port, password string, tlsSkipVerify bool) notification.Sender

New constructs a new SMTP notification sender

Types

type Client

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

Client is a SMTP client and implements Sender

func (Client) Send

func (c Client) Send(msg notification.Message) error

Send sends the notification

Jump to

Keyboard shortcuts

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