Examples (3)
Send a message with the content of `message.txt` to the mail directory of local user `username`
sendmail < message.txt usernameSend an email from `[email protected]` (assuming the mail server is configured for this) to `[email protected]` containing the message in `message.txt`
sendmail < message.txt -f [email protected] [email protected]Send an email from `[email protected]` (assuming the mail server is configured for this) to `[email protected]` containing the file `file.zip`
sendmail < file.zip -f [email protected] [email protected]made by @shridhargupta | data from tldr-pages