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

陆佃

关注

阅读 77

2022-02-27


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


相关推荐

精彩评论(0)

0 0 举报