email:sending_a_mail_in_the_shell
Differences
This shows you the differences between two versions of the page.
email:sending_a_mail_in_the_shell [2016/10/18 09:48] – created peter | email:sending_a_mail_in_the_shell [2019/11/27 22:09] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Email - Sending a mail in the shell ====== | ||
- | <code bash> | ||
- | # mail the text that was piped to mail | ||
- | echo "mail text" | mail johndoe@example.com -s " | ||
- | |||
- | # mail the file content | ||
- | cat list.txt | mail johndoe@example.com -s "jar with dependencies" | ||
- | </ |
email/sending_a_mail_in_the_shell.1476784104.txt.gz · Last modified: 2020/07/15 09:30 (external edit)