send

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmailSecurityForceTLS = "FORCE_TLS"
	EmailSecuritySTARTTLS = "STARTTLS"
)

Variables

This section is empty.

Functions

func SendEmail

func SendEmail(c EmailConfig) (err error)

Types

type EmailConfig

type EmailConfig struct {
	Host             string
	Port             uint
	Username         string
	Password         string
	FromName         string
	FromAddress      string
	ToName           string
	ToAddress        string
	Subject          string
	BodyReader       io.Reader
	Security         string
	AllowInsecureTLS bool
}

Jump to

Keyboard shortcuts

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