要想一行指令就把 file 夾在 mail 附件寄出的方法:
uuencode filename.zip Attachment.zip| mail -s "Subject" abc@domain
--------------------------------------------------
echo -e "test" |mutt -s "test" -a /etc/group yuhj@yuhj.cn -c yuhj@srv.yuhj.cn
--------------------------------------------------
solaris自带的mail/mailx/sendmail指令发送附件, 方法如下:
uuencode aaa.txt abc.txt | mailx -s "subject" mail_list
评论