swaks --to user@example.com --from me@example.com --header-Subject "test" --body "hi"

Category: Mail Servers & Postfix

swaks --to user@example.com --from me@example.com --header-Subject "test" --body "hi"

Send a test email with custom subject and body

Delivers a hand-crafted message: --from sets the envelope sender, --header-Subject adds a Subject header, and --body supplies the text. Headers use the --header-Name form, one per option. Useful for reproducing real messages against a server.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.