code: @Override
      public Email setMsg(String msg) throws EmailException {
  	if (StringUtil.isEmpty(msg)) {
  	    throw new EmailException("Invalid message supplied");
  	}
  
  	setTextMsg(msg);
  
  	setHtmlMsg(new StringBuffer().append("<html><body><pre>").append(msg).append("</pre></body></html>").toString());
  
  	return this;
      }
docs: Set the message.
  
  <p>
  This method overrides the MultiPartEmail setMsg() method in order to send an HTML message instead
  of a full text message in the mail body. The message is formatted in HTML for the HTML part of
  the message, it is let as is in the alternate text part.
  
  @param msg A String.
  @return An Email.
  @throws EmailException see javax.mail.internet.MimeBodyPart for definitions