email

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSMTPNoSet          = errors.New(`SMTP is not set`)
	ErrSendChannelTimeout = errors.New(`SendMail: The sending channel timed out`)
)

Functions

func Initial

func Initial(queueSizes ...int)

func SMTPClient

func SMTPClient(conf *mail.SMTPConfig) *mail.SMTPClient

func SendMail

func SendMail(conf *Config) error

Types

type Config

type Config struct {
	SMTP       *mail.SMTPConfig
	From       string
	ToAddress  string
	ToUsername string
	Subject    string
	Content    []byte
	CcAddress  []string
	Auth       smtp.Auth
}

Jump to

Keyboard shortcuts

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