email

package
v0.0.0-...-a46d881 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WeddingAddress = "lindenandmike@gmail.com" // ToDo: Configurable?

	GMailHost = "smtp.gmail.com"
	GMailPort = 587
)
View Source
const (
	NotificationTmpl = MessageTemplate("notification")
	ResponseTmpl     = MessageTemplate("response")
)

Variables

This section is empty.

Functions

func SendEmail

func SendEmail(
	cfg *lib.Config,
	log *zap.Logger,
	toAddress string,
	targetTemplate MessageTemplate,
	renderData map[string]interface{},
) error

Types

type MessageTemplate

type MessageTemplate string

Jump to

Keyboard shortcuts

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