mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 09:02:08 +02:00

Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com> Co-authored-by: Seth Falco <seth@falco.fun> Co-authored-by: Patrice Denis <patricedenis@users.noreply.github.com>
629 B
629 B
sendmail
Send email from the command-line.
- Send a message with the content of
message.txt
to the mail directory of local userusername
:
sendmail {{username}} < {{message.txt}}
- Send an email from you@yourdomain.com (assuming the mail server is configured for this) to test@gmail.com containing the message in
message.txt
:
sendmail -f {{you@yourdomain.com}} {{test@gmail.com}} < {{message.txt}}
- Send an email from you@yourdomain.com (assuming the mail server is configured for this) to test@gmail.com containing the file
file.zip
:
sendmail -f {{you@yourdomain.com}} {{test@gmail.com}} < {{file.zip}}