ITPub博客

首页 > Linux操作系统 > Linux操作系统 > [Linux] mutt mail oracle awr [Html能正常显示表格]

[Linux] mutt mail oracle awr [Html能正常显示表格]

原创 Linux操作系统 作者:tolilong 时间:2016-03-05 22:28:12 0 删除 编辑
使用mutt发送awr report的时候使用如下命令:
[root@oracle6 sbin]# cat /home/oracle/awrrpt_1_20866_20874.html | mutt -s "Oracle AWR Report" tolilong@163.com -a /home/oracle/awrrpt_1_20866_20874.html
可以将awrrpt_1_20866_20874.html当成附件发送给maillist,
但是awrrpt_1_20866_20874.html里面内容却当成源码发送给maillist了。


mutt后面加上-e "set content_type=text/html" 参数就可以在mail中显示html的正常格式了.
[root@oracle6 sbin]# cat /home/oracle/awrrpt_1_20866_20874.html | mutt -s "oracle awr report" -e "set content_type=text/html" tolilong@163.com -a /home/oracle/awrrpt_1_20866_20874.html
awrrpt_1_20866_20874.html即当成附件发送了,也在mail内容中能正常显示了。

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

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

注册时间:2010-07-13

  • 博文量
    406
  • 访问量
    1208701