edit mail

This commit is contained in:
onceupon 2017-10-05 11:20:22 +08:00 committed by GitHub
parent 07f29055e9
commit dc9cd819f6

View File

@ -1046,7 +1046,7 @@ some_commands 2>&1 >>outfile
##### Send mail ##### Send mail
```bash ```bash
echo 'heres the content'| mail -A 'file.txt' -s 'mail.subject' me@gmail.com echo 'heres the content'| mail -a /path/to/attach_file.txt -s 'mail.subject' me@gmail.com
``` ```
//use -a flag to set send from (-a "From: some@mail.tld") //use -a flag to set send from (-a "From: some@mail.tld")