sendmail (OpenSMTPD)

From RaySoft

The sendmail utility is a local enqueuer for the smtpd daemon. The message is read on standard input (stdin) until sendmail encounters an end-of-file. The sendmail enqueuer is not intended to be used directly to send mail, but rather via a frontend known as a mail user agent.[1]

Documentation

Syntax

sendmail [PARAMETER ...] [RECIPIENT ...]

Parameters

-F NAME
Set the sender's full NAME.
-f ADDRESS
Set the sender's ADDRESS.
-t
Read the message's To:, Cc:, and Bcc: fields for recipients. The Bcc: field will be deleted before sending.
-v
Enable verbose output.

Examples

Send a test email
sendmail -t -v

Content:

To: root
Subject: Test OpenSMTPD

This an OpenSMTPD test!

References

  1. man 1 'sendmail'