email

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DATEMSG    = "2006-01-02 at 15:04:05"
	ES_FROM    = "From"
	ES_TO      = "To"
	ES_CC      = "Cc"
	ES_SUBJECT = "Subject"
	ES_TYPE    = "text/html"
)

The `const` block defines a set of constants used in the email package.

Variables

View Source
var EMAIL_Footer string
View Source
var EMAIL_From string
View Source
var Emailer *gomail.Dialer

Functions

func Email_init

func Email_init() *gomail.Dialer

The function initializes and returns a gomail.Dialer object for sending emails.

func SendEmail

func SendEmail(to string, name string, subject string, body string)

The function `SendEmail` sends an email with the specified recipient, subject, and body, using the `gomail` package in Go.

Types

This section is empty.

Jump to

Keyboard shortcuts

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