1 定义邮件函数
FunEmail(){echo -e $* | mutt -e "my_hdr From:test@" -e 'set content_type="text/html"' -s "[Error]" ${mail_list}}email_txt='Hi All,<br><br><font color=blue>这里可以使用html的元素</font>'#调用函数FunEmail $email_txt
2 直接调用
echo \" Hi All">> ${out_html}echo \"<font color=blue><br><b>Regards,</b><br></font>" >> ${out_html}cat $out_html | mutt -e "my_hdr From:test@" -e "set content_type=text/html" -s "邮件标题" -c test2@ -a "附件"