servicemailjet

package
v8.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send[T any](ctx context.Context, input SendInput, variables T) error

Types

type Email

type Email struct {
	Address string
	Name    string
}

type SendInput

type SendInput struct {
	From        Email
	To          []Email
	Subject     string
	TemplateID  TemplateID
	Attachments *mailjet.AttachmentsV31
}

type SendOrderVariables

type SendOrderVariables struct {
	FirstName     string `json:"firstName"`
	Title         string `json:"title"`
	Content       string `json:"content"`
	ActionText    string `json:"actionText"`
	ActionLink    string `json:"actionLink"`
	ActionEnabled string `json:"actionEnabled"`
}

type TemplateID

type TemplateID int
const (
	TemplateIDOrder TemplateID = 3889572
)

Jump to

Keyboard shortcuts

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