private void setContent ( final EmailMessage emailWithData , final Part partToSet ) throws MessagingException { partToSet . setContent ( emailWithData . getContent ( ) , emailWithData . getMimeType ( ) + CHARSET + emailWithData . getEncoding ( ) ) ; }
Sets emailWithData content into msgToSet .