postmark

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 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
}

func (Config) Format

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

type Driver

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

func New

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

func (*Driver) Close

func (d *Driver) Close()

func (Driver) Format

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

func (*Driver) Send

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

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