email

package
v0.0.0-...-e11dccf Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keywords

type Keywords = map[string]string

type NewSenderOptions

type NewSenderOptions struct {
	BaseURL                   string
	EndpointURL               string
	Log                       *snorkel.Logger
	MarketingEmailAddress     string
	MarketingEmailName        string
	ReplyToEmailName          string
	ReplyToEmailAddress       string
	Token                     string
	TransactionalEmailAddress string
	TransactionalEmailName    string
}

type Sender

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

Sender can send transactional and marketing emails through Postmark. See https://postmarkapp.com/developer

func NewSender

func NewSender(opts NewSenderOptions) *Sender

func (*Sender) SendTransactionalEmail

func (s *Sender) SendTransactionalEmail(ctx context.Context, name string, email model.Email, subject, preheader, template string, kw Keywords) error

Jump to

Keyboard shortcuts

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