特殊字符的处理。。¥$$$
while (true) { StringBuffer sb = new StringBuffer(); int index = tmpMailContent.indexOf("$"); if (index>=0) { if (index>0) { sb.append(tmpMailContent.substring(0,index)); } sb.append("$"); sb.append(tmpMailContent.substring(index+1)); tmpMailContent = sb.toString(); } else { break; } }[@more@]
public void sendHtml
public void sendHtml(String from, String to, String cc, String bcc,String subject, String msgText, String msgEncode, String[] fileNames)throws Exception {if (fileNames!=null) {System.out.println("com.gepower.malautomation.util.MailSender Start.sendHtml:fileNames="+fileNames[0]);}System.out.println("com .util.MailSender .sendHtml:subject="+subject);System.out.println("com. .util.MailSender .sendHtml:from="+from);System.out.println("com. util.MailSender .sendHtml