sendmail Command Examples
Send email. More information: https://manned.org/sendmail.
- Send a message with the content of
message.txt
to the mail directory of local userusername
:
sendmail {{username}} < {{message.txt}}
- Send an email from [email protected] (assuming the mail server is configured for this) to [email protected] containing the message in
message.txt
:
sendmail -f {{[email protected]}} {{[email protected]}} < {{message.txt}}
- Send an email from [email protected] (assuming the mail server is configured for this) to [email protected] containing the file
file.zip
:
sendmail -f {{[email protected]}} {{[email protected]}} < {{file.zip}}