Documentation
¶
Overview ¶
Package mailcmd composes an email message and either writes it to a writer or sends it via an injected sender. It backs the span-mail command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
Config holds the fields needed to compose a message. Body is the already-read message body (main reads the -b file); SMTPServer is the host part of the server address ("" if a composed-message writer is used instead).
type Sender ¶
Sender sends a composed message. It is injected so Run can be tested without touching the network; the default sender talks SMTP.
func DefaultSender ¶
DefaultSender sends the message via SMTP to server:25 with no auth.
Click to show internal directories.
Click to hide internal directories.