Linux上使用mail命令发送带附件邮件

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
原文地址:https://www.cnblogs.com/jerry1999/p/3677356.html