email

package
v0.0.0-...-6d5e59d Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Pool *email.Pool
)

Functions

func New

func New(opts Option) (*email.Pool, error)

New create an email http request pool to send email.

func Send

func Send(toEmail []string, subject string, text []byte) error

Types

type Option

type Option struct {
	SMTPKey   string `yaml:"smtpKey"`
	FromEmail string `yaml:"fromEmail"`
}

func (*Option) Valid

func (opts *Option) Valid() []error

Jump to

Keyboard shortcuts

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