postmark

package
v0.50.2 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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