cloudflare

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: 8 Imported by: 0

Documentation

Overview

Package cloudflare submits MIME through Cloudflare Email Service's REST API. Provider acceptance does not guarantee delivery to every envelope recipient.

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
	AccountID string
	Token     secret.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)

New validates configuration without I/O. AccountID is the 32-character hexadecimal Cloudflare account identifier; Token needs Email Sending access.

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)

Jump to

Keyboard shortcuts

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