HTML Email - do not repeat subject in message body.

This commit is contained in:
Heng Sin Low 2011-02-10 10:02:20 +08:00
parent 16c60adc49
commit 2fcdbafd6d
1 changed files with 33 additions and 34 deletions

View File

@ -757,16 +757,15 @@ public final class EMail implements Serializable
{ {
m_subject = subject; m_subject = subject;
StringBuffer sb = new StringBuffer("<HTML>\n") StringBuffer sb = new StringBuffer("<HTML>\n")
.append("<HEAD>\n") .append("<HEAD>\n")
.append("<TITLE>\n") .append("<TITLE>\n")
.append(subject + "\n") .append(subject + "\n")
.append("</TITLE>\n") .append("</TITLE>\n")
.append("</HEAD>\n"); .append("</HEAD>\n");
sb.append("<BODY>\n") sb.append("<BODY>\n")
.append("<H2>" + subject + "</H2>" + "\n") .append(message)
.append(message) .append("\n")
.append("\n") .append("</BODY>\n");
.append("</BODY>\n");
sb.append("</HTML>\n"); sb.append("</HTML>\n");
m_messageHTML = sb.toString(); m_messageHTML = sb.toString();
} // setMessageHTML } // setMessageHTML