mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-22 18:51:27 +00:00
Update cheatsheets
This commit is contained in:
21
sendmail
Normal file
21
sendmail
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
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 {{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}}`
|
||||
Reference in New Issue
Block a user