1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 06:02:08 +02:00
tldr/pages/common/sendmail.md
Lena 7ca1069d76
pages/*: reword descriptions without using "a CLI for" etc. (#10437)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-07-16 19:23:40 +02:00

16 lines
658 B
Markdown

# 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 {{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}}`