1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 14:02:08 +02:00
tldr/pages/common/sendmail.md
Lucas Gabriel Schneider a5fe31bc47
multiple pages: format technical tokens (#5119)
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-01-31 12:05:18 -05:00

15 lines
629 B
Markdown

# sendmail
> Send email from the command line.
- 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}}`