mail

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(configuration ConfigOption) auth.Emailer

NewService returns a new mailing service.

Types

type Config

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

Config holds configuration options for the service.

type ConfigOption

type ConfigOption func(*service)

ConfigOption configures the service.

func WithConfig

func WithConfig(config Config) ConfigOption

WithConfig configures the service with a Config.

func WithDefaults

func WithDefaults(serverAddr, fromAddr string, auth smtp.Auth) ConfigOption

WithDefaults configures the service with a default mailer (net/smtp)

Jump to

Keyboard shortcuts

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