tldr/pages/common/sendmail.md

629 B

sendmail

Send email from the command line.

  • Send a message with the content of message.txt to the mail directory of local user username:

sendmail {{username}} < {{message.txt}}

sendmail -f {{you@yourdomain.com}} {{test@gmail.com}} < {{message.txt}}

sendmail -f {{you@yourdomain.com}} {{test@gmail.com}} < {{file.zip}}