postmark

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postmark

type Postmark struct {
	// contains filtered or unexported fields
}

func New

func New(from string, serverToken string) *Postmark

func (*Postmark) SendEmail

func (p *Postmark) SendEmail(
	ctx context.Context,
	to string,
	locale string,
	templateName notifications.TemplateName,
	data notifications.TemplateData,
) error

type SendWithTemplateRequest

type SendWithTemplateRequest struct {
	TemplateAlias string `json:"TemplateAlias,omitempty"`
	TemplateModel any    `json:"TemplateModel"`
	From          string `json:"From"`
	To            string `json:"To"`
}

Jump to

Keyboard shortcuts

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