写好了现成的工具类,直接使用;
先引入mail.jar包;
导入我写好的工具类;
直接调用即可:SendMail.SendMailHtml("[email protected]", 标题", "<p>内容<p>");