email

package
v0.0.0-...-2610577 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is used to send emails.

func New

func New(cfg *Config, logger logger) (*Client, error)

New returns new email client.

func (*Client) Send

func (c *Client) Send(to string, subject string, payload string) error

Send sends _payload_ to the client.

type Config

type Config struct {
	Enabled  bool
	Addr     string
	From     string
	Username string
	Password string
}

Config contains email client configuration.

Jump to

Keyboard shortcuts

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