0
点赞
收藏
分享

微信扫一扫

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

陆佃 2022-02-27 阅读 77


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 条评论