mail

package
v0.0.0-...-cfd0939 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: MIT Imports: 6 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 implements the notify.Sender

func New

func New(opt Options) *Client

New returns a new mail client

func (*Client) Send

func (c *Client) Send(body []byte) error

Send implements the notify.Sender interface

type Options

type Options struct {
	From, To               string
	Subject                string
	Server, User, Password string
	Port                   int
}

Options represents mail client options

Jump to

Keyboard shortcuts

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