package
0.0.0-20250310152205-cf1c49d765ed
Repository: https://github.com/hobeone/rss2go.git
Documentation: pkg.go.dev

# Functions

CreateAndStartMailer returns a New Dispatcher with a sender cofigured from the config file.
CreateAndStartStubMailer returns a Dispatcher that will send all mail to null.
CreateMailFromItem returns a Message containing the given item.
FormatMessageBody formats the Story for better reading in a mail client.
NewDispatcher returns a newly created Dispatcher with defaults set.
NewLocalMTASender returns a pointer to a new LocalMTASender instance with defaults set.
NewSMTPSender returns a pointer to a new SMTPSender instance with defaults set.

# Constants

MTABINARY sets the default MTA binary to exec when sending mail locally.

# Structs

Dispatcher listens for mail Requests and sends them to the configured Sender.
LocalMTASender can send mail using a local binary (rather than over SMTP).
NullMailSender doesn't send mail.
Request defines a request for a Feed Item to be mailed to a list of email addresses.
SendmailRunner sends email through the sendmail binary.
SMTPSender encapsualtes functionality to send mail to a SMTP server.

# Interfaces

CommandRunner is the interface for running an external command (to send mail).
Sender is the interface for something that can send mail.