postmark

package
v1.0.0-dev.9 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 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 Sender

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

Sender is an email sender that sends emails using the Postmark API.

func NewSender

func NewSender(client *http.Client, s Settings) *Sender

NewSender creates a new sender.

func (*Sender) Send

func (s *Sender) Send(ctx context.Context, from, recipient email.Address, subject, body string) error

Send sends an email using the Postmark API.

type Settings

type Settings struct {
	APIURL        *url.URL
	ServerToken   krypto.Secret
	MessageStream string
}

Settings contains the settings for the Postmark API.

Jump to

Keyboard shortcuts

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