1.使用mail发送单个附件
uuencode file_path file | mail -s "file" 123@***.com
2.使用mail发送多个附件
uuencode /root/zyx.cap zyx.cap >attach1.txt
uuencode /root/sendmail.pl sendmail.pl >attach2.txt
cat msg.txt attach1.txt attach2.txt>combined.txt
mail -s "cesho" 123@***l.com <combined.txt