Added email notes to the knowledge base

This commit is contained in:
Michele Cereda
2022-04-17 23:19:24 +02:00
parent 85ff21dca4
commit 3452d9e7d7

View File

@@ -0,0 +1,22 @@
# Send an email from CLI
## TL;DR
```shell
mail -s "Subject" recipient@mail.server
echo "" | mail -a attachment.file -s "Subject" recipient@mail.server
# send larger files
cat file.txt | mail -s "Subject" recipient@mail.server
# make "email-safe" the contents of a file
uuencode file.txt | mail -s "Subject" recipient@mail.server
```
## Further readings
- [linux mail command examples]
- [uuencode]
[linux mail command examples]: https://www.binarytides.com/linux-mail-command-examples
[uuencode]: https://linux.101hacks.com/unix/uuencode/