javamail发送html页面问题(在线) BodyPart bp = new MimeBodyPart(); bp.setContent(body, "text/html;charset=GB2312"); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 StringBuffer body=new StringBuffer();body.append("<html><body><table border=\"1\" align=\"center\" bordercolorlight=\"#2351a7\" bordercolordark=\"#f9f9ec\" style=\"border-style: fixed; border-collapse:collapse; border-color: #2351a7\">");body.append("<tr><td width=\"100\" align=\"center\"><font face=\"Arial\" size=\"3\">Model No</font></td>");body.append("<td width=\"80\" align=\"center\"><font face=\"Arial\" size=\"3\">Destination</font></td>");body.append("<td width=\"60\" align=\"center\"><font face=\"Arial\" size=\"3\">Rej Lot</font></td></tr>");body.append("</table>");body.append("</body></html>");//把html写到body里面mysend.setMyHtmlMessage(body.toString());//把body作为mail的内容这样即可实现~~~ 你要实现mime 协议组织邮件内容。请参考下面的文章http://www.51one.net/info/173_1.htm 求基于BS架构的养老院看护系统J2EE做的 怎么设置IE浏览的存活时间 JAVA查询语句问题! ExtJS复选框问题 菜鸟还是不懂,请在指教 懂XML 和JAVA 朋友进来 一个小程序(有酬答谢) struts+hibernate开发时遇到的错误?各位朋友知道的说下了,谢谢 java 如何调用.net写的webservice 初学者问些概念方面的问题。 struts标签库使用问题:如何将使用hibernate查询结果用iterate标签显示出来? 小弟初来乍到,先给各位散分请安了! hibernate的疑问?
body.append("<html><body><table border=\"1\" align=\"center\" bordercolorlight=\"#2351a7\" bordercolordark=\"#f9f9ec\" style=\"border-style: fixed; border-collapse:collapse; border-color: #2351a7\">");
body.append("<tr><td width=\"100\" align=\"center\"><font face=\"Arial\" size=\"3\">Model No</font></td>");
body.append("<td width=\"80\" align=\"center\"><font face=\"Arial\" size=\"3\">Destination</font></td>");
body.append("<td width=\"60\" align=\"center\"><font face=\"Arial\" size=\"3\">Rej Lot</font></td></tr>");
body.append("</table>");
body.append("</body></html>");
//把html写到body里面
mysend.setMyHtmlMessage(body.toString());//把body作为mail的内容这样即可实现~~~
http://www.51one.net/info/173_1.htm