mail

package
v0.0.0-...-4c3d7af Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrNotValidFromAddr = errored.New("sender email address provided is invalid")
	ErrNotValidToAddr   = errored.New("recipient email address provided is invalid")
)

Variables

This section is empty.

Functions

func Send

func Send(fromAddr, password, toAddr, subject, body string) error

Send this sends a mail specifically for gmail using plain auth fromAddr is the sender email address password is the sender password; you must use an App Password toAddr is the recipient email address subject is the subject of the mail body is the content of your mail

Types

This section is empty.

Jump to

Keyboard shortcuts

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