mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-02 22:43:13 +00:00
22 lines
751 B
Plaintext
22 lines
751 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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 you@yourdomain.com (assuming the mail server is configured for this) to test@gmail.com containing the message in `message.txt`:
|
|
|
|
`sendmail < {{message.txt}} -f {{you@yourdomain.com}} {{test@gmail.com}}`
|
|
|
|
- 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 < {{file.zip}} -f {{you@yourdomain.com}} {{test@gmail.com}}`
|