send

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package send submits messages over SMTP.

Index

Constants

This section is empty.

Variables

View Source
var ErrUncertain = errors.New("send: the server may have accepted the message")

ErrUncertain means the whole message reached the server but its verdict did not come back: it may have been accepted. Retrying could deliver it twice.

Functions

func Send

func Send(ctx context.Context, ep conn.Endpoint, from string, rcpts []string, raw []byte) error

Send submits raw to rcpts. An error that is not ErrUncertain happened before the server could accept the message, so retrying is safe. Cancelling ctx closes the connection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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