email

package
v0.0.0-...-d39f515 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(input *SendInput) error

Types

type RawTemplate

type RawTemplate *struct {
	Html    *template.Template
	Subject string
}

type SendInput

type SendInput struct {
	Template     TemplateName
	TemplateData map[string]string
	To           string
}

type Template

type Template struct {
	Html    []byte
	Subject string
}

func GetTemplate

func GetTemplate(name TemplateName, data map[string]string) (*Template, error)

type TemplateName

type TemplateName string
const (
	TemplateInvite            TemplateName = "invite"
	TemplatePasswordRecovery  TemplateName = "password_recovery"
	TemplateSubscriptionStart TemplateName = "subscription_start"
	TemplateTrialEnd          TemplateName = "trial_end"
	TemplateTrialEnding       TemplateName = "trial_ending"
	TemplateTrialMidway       TemplateName = "trial_midway"
	TemplateTrialStart        TemplateName = "trial_start"
	TemplateWelcome           TemplateName = "welcome"
)

Jump to

Keyboard shortcuts

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