tldr/pages/common/sendmail.md

626 B

sendmail

Send email from the command line.

  • Send a message with the content of message.txt to the mail folder of local user user_name:

sendmail {{user_name}} < {{message.txt}}

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

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