tldr/pages/common/sendmail.md
2020-02-08 19:56:05 +01:00

627 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}}