postmark

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package postmark submits through Postmark's single-email API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HTTP          email.HTTPConfig
	ServerToken   secret.String
	MessageStream string
}

Config configures Postmark HTTP transport, server token, and message stream.

func (Config) Format

func (Config) Format(s fmt.State, _ rune)

Format writes a fixed label without exposing Postmark configuration.

type Driver

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

Driver submits email through the Postmark API.

func New

func New(config Config) (*Driver, error)

New validates Postmark credentials and stream settings and creates its HTTP client.

func (*Driver) Close

func (d *Driver) Close()

Close closes the driver's HTTP client; a nil driver is harmless.

func (Driver) Format

func (Driver) Format(s fmt.State, _ rune)

Format writes a fixed label without exposing driver credentials.

func (*Driver) Send

func (d *Driver) Send(ctx context.Context, out email.Outbound) (email.Receipt, error)

Send submits a structured message to Postmark and classifies provider rejection or uncertain acceptance.

func (*Driver) StructuredSubmission

func (*Driver) StructuredSubmission() bool

StructuredSubmission reports that this provider API sends native fields, so the mailer skips MIME rendering.

Jump to

Keyboard shortcuts

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