protected MailMessage createMailMessage(Map<String, Object> messageHeaders, String body, String contentType) {
        return MailMessage.request(messageHeaders)
                .marshaller(marshaller)
                .from(messageHeaders.get(CitrusMailMessageHeaders.MAIL_FROM).toString())
                .to(messageHeaders.get(CitrusMailMessageHeaders.MAIL_TO).toString())
                .cc(messageHeaders.get(CitrusMailMessageHeaders.MAIL_CC).toString())
                .bcc(messageHeaders.get(CitrusMailMessageHeaders.MAIL_BCC).toString())
                .subject(messageHeaders.get(CitrusMailMessageHeaders.MAIL_SUBJECT).toString())
                .body(body, contentType);
    }
protected MailMessage createMailMessage ( Map < String , Object > messageHeaders , String body , String contentType ) { return MailMessage . request ( messageHeaders ) . marshaller ( marshaller ) . from ( messageHeaders . get ( CitrusMailMessageHeaders . MAIL_FROM ) . toString ( ) ) . to ( messageHeaders . get ( CitrusMailMessageHeaders . MAIL_TO ) . toString ( ) ) . cc ( messageHeaders . get ( CitrusMailMessageHeaders . MAIL_CC ) . toString ( ) ) . bcc ( messageHeaders . get ( CitrusMailMessageHeaders . MAIL_BCC ) . toString ( ) ) . subject ( messageHeaders . get ( CitrusMailMessageHeaders . MAIL_SUBJECT ) . toString ( ) ) . body ( body , contentType ) ; }
Creates a new mail message model object from message headers.
@param messageHeaders
@param body
@param contentType
@return