This shows you the differences between two versions of the page.
— |
tips:openbsd:mailcommand [2011/03/14 17:48] (current) mattieu created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Send basic e-mail with mail(1) ====== | ||
+ | ===== Send e-mail in shell scripts ===== | ||
+ | mail(1) usage: | ||
+ | < | ||
+ | -c address Send copy of the mail to the specified address | ||
+ | -b address Send blind carbon copy to specified address</ | ||
+ | Send a file to root: | ||
+ | <code bash>$ mail -s "TODO list" root < todo.log</ | ||
+ | ===== Attach files with uuencode(1) ===== | ||
+ | Send a binary file: | ||
+ | <code bash>$ uuencode brimbelle.jpeg brimbelle.jpeg | mail matt@home.com</ | ||
+ | |||
+ | Send multiple files: | ||
+ | <code bash> | ||
+ | ~~NOTOC~~ |