send

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Transport string
	Timeout   time.Duration
}

Config is the send config.

func Configure added in v0.9.1

func Configure(opts ...Option) Config

Configure builds Config from opts.

type Option

type Option func(*Config)

Option is a send option.

func Timeout

func Timeout(dur time.Duration) Option

Timeout returns an Option that adds a timeout a send.

func Use

func Use(transport string) Option

Use sets the transport name that should be used for sending a Mail.

Jump to

Keyboard shortcuts

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