linux shell 发送email 附件

方法一:发送单个附件(正文乱码)

mutt -s "mail subject" -a output_email.html -- tomail@163.com < output_email.html

或者

cat output_email.html | mutt -s "mail subject" -a output_email.html -- tomail@163.com

效果截图:

邮件正文乱码


方法二:发送多个附件(正文不乱码)


效果图:



推荐网站:

Sending files as mail attachments

Sending email with attachments on UNIX systems

Linux自动下发送HTML格式并带附件的邮件




posted @ 2011-09-16 15:34  SpringMVC+Hibernate  阅读(175)  评论(0编辑  收藏  举报
友情链接:厦门事业单位