ITPub博客

首页 > Linux操作系统 > Linux操作系统 > linux shell发送带附件的邮件

linux shell发送带附件的邮件

原创 Linux操作系统 作者:markzy5201190 时间:2012-08-27 18:19:08 0 删除 编辑
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博客 ” ,链接:https://blog.itpub.net/26855487/viewspace-742015/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2012-04-05

  • 博文量
    82
  • 访问量
    472458