email

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MailHost     = os.Getenv("MAIL_HOST")
	MailPort     = os.Getenv("MAIL_PORT")
	MailSecure   = os.Getenv("MAIL_SECURE")
	MailUser     = os.Getenv("MAIL_USER")
	MailPassword = os.Getenv("MAIL_PASSWORD")
	MailFrom     = os.Getenv("MAIL_FROM")
)

SMTP configuration

Functions

func SendMail

func SendMail(to, subject, htmlPath string, attachment []Attachments, data interface{}) error

SendMail function

Send email using SMTP with html template

Types

type Attachments

type Attachments struct {
	AttachmentBase64 string
	AttachmentName   string
}

Attachments to send attachment

Jump to

Keyboard shortcuts

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