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
}
Config configures Cloudflare email HTTP transport, account, and credentials.
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver submits email through the Cloudflare API.
func New ¶
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()
Close closes the driver's HTTP client; a nil driver is harmless.
Click to show internal directories.
Click to hide internal directories.