private void setSubject ( final Email emailWithData , final MimeMessage msgToSet ) throws MessagingException { if ( emailWithData . subjectEncoding ( ) != null ) { msgToSet . setSubject ( emailWithData . subject ( ) , emailWithData . subjectEncoding ( ) ) ; } else { msgToSet . setSubject ( emailWithData . subject ( ) ) ; } }
Sets subject in msgToSet from subject in emailWithData .