email

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Overview

Package email defines the stable core email port.

Message is the provider-neutral payload shape used by outbound email senders. Sender is intentionally narrow so applications can adapt Resend, SMTP, test, or no-op delivery without depending on a provider package from the stable core module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	From    string
	To      []string
	ReplyTo string
	Subject string
	Text    string
	HTML    string
}

Message is a provider-agnostic email payload.

type Sender

type Sender interface {
	Send(ctx context.Context, msg Message) (string, error)
}

Sender delivers outbound email messages.

Jump to

Keyboard shortcuts

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