smtp

package
v0.0.0-...-55860fd Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const UID = "smtp"

Variables

This section is empty.

Functions

func Default

func Default() (*client, error)

func Load

func Load(loader envconfig.LoaderFunc) (*client, error)

func New

func New(opt Options) *client

Types

type Options

type Options struct {
	Host               string   `json:"host" envconfig:"HOST" required:"true" form:"smtp_host"`
	Port               int      `json:"port" envconfig:"PORT" required:"true" form:"smtp_port"`
	InsecureSkipVerify bool     `json:"insecure_skip_verify" envconfig:"INSECURE_SKIP_VERIFY" form:"smtp_insecure_skip_verify"`
	Username           string   `json:"username" envconfig:"USERNAME" required:"true" form:"smtp_username"`
	Password           string   `json:"password" envconfig:"PASSWORD" required:"true" form:"smtp_password"`
	From               string   `json:"from" envconfig:"FROM" required:"true" form:"smtp_from"`
	To                 []string `json:"to" envconfig:"TO" form:"smtp_to"`
}

Jump to

Keyboard shortcuts

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