使用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内容中能正常显示了。
[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博客 ” ,链接:http://blog.itpub.net/24237320/viewspace-2043243/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/24237320/viewspace-2043243/