sendmail

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package sendmail implements the sendmail-compatible OwlMail CLI client.

Index

Constants

View Source
const (
	ExitOK          = 0
	ExitUsage       = 64
	ExitDataError   = 65
	ExitUnavailable = 69
	ExitIOError     = 74
	ExitTempFailure = 75
)

Exit statuses follow sysexits(3), as traditional sendmail-compatible programs do. Keep these values stable for callers such as PHP and cron.

Variables

This section is empty.

Functions

func Run

func Run(args []string, stdin io.Reader, stdout, stderr io.Writer) int

Run reads an RFC 5322 message from stdin and submits it through SMTP. It never prints message content, credentials, or an SMTP authentication trace.

Types

This section is empty.

Jump to

Keyboard shortcuts

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