input operators

One-line CLI mail to multiple recipients with inline content

Intro I found a one-liner that allowed me to test the outgoing mail setup on a remote server. The following one-liner worked, and introduced me to some new-to-me functionality with Bash and Mail. mail -s "Testing Not registration confirmation" -r from@address.com to1@example.com,to2@example.com <<< 'testing 4' Analysis mail The command assumes that you already have a working Mail1 aka PostFix setup on the server you are running on, which means a sendmail setup.