Files
tldr/pages/common/sendmail.md
T
Meinard Francisco 01aae98dfe *: use example.com (#19288)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Harshavardhan <harshath3018@gmail.com>
Co-authored-by: Lena Pastwa <126529524+acuteenvy@users.noreply.github.com>
2025-11-10 19:14:36 +00:00

666 B

sendmail

Send email. More information: https://manned.org/sendmail.

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

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

  • Send an email from sender@example.com (assuming the mail server is configured for this) to receiver@example.com containing the message in message.txt:

sendmail < message.txt -f sender@example.com receiver@example.com

  • Send an email from sender@example.com (assuming the mail server is configured for this) to receiver@example.com containing the file file.zip:

sendmail < file.zip -f sender@example.com receiver@example.com