private MimePart createHtmlMimePart ( ) throws MessagingException { MimePart bodyPart = new MimeBodyPart ( ) ; bodyPart . setContent ( htmlPart , "text/html; charset=utf-8" ) ; return bodyPart ; }
Creates a MimePart from HTML part .