email

package
v0.0.0-...-fa6ae4b Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigOptions

type ConfigOptions struct {
	From     string
	Host     string
	Port     int
	Username string
	Passwd   string
}

ConfigOptions includes all mail config options.

type Mail

type Mail struct {
	ConfigOptions
	// contains filtered or unexported fields
}

Mail is a configured email.

func New

func New(logger *zap.SugaredLogger, conf ConfigOptions, to, subject string) Mail

New returns a new mail.

func (Mail) Send

func (m Mail) Send(content string) error

Send sends email.

Jump to

Keyboard shortcuts

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