linux shell发送带附件的邮件

mutt 是linux下强大邮件客户端软件
-s 主题
-a 附件
-c 抄送,多个抄送是多个-c 
如下:
多个抄送写邮件格式:
cat /path/contentfile | mutt -s "this is subject" -a /path/xx.zip abc@local.domain -c bb@local.domain -c ccc@local.domain  -c ....
发多个email,格式:
cat /path/contentfile | mutt -s "this is subject" -a /path/xx.zip abc@local.domain bbb@local.domain ccc@local.domain ....

没有正文的话,直接echo 出来
echo "This is content" | mutt -s "this is subject" -a /path/xx.zip(附件中内容) xx@local.domain -c bbb@local.domain ccc@local.domain (多个抄送其他人写法
空格 + 邮件地址)

有正文写法:
echo /path/contentfile | mutt -s "this is subject" -a /path/xx.zip(附件中内容) xx@local.domain -c bbb@local.domain ccc@local.domain


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26855487/viewspace-742015/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/26855487/viewspace-742015/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值