return mimeMessagePreparator;
}
private void checkEmailAddresses(AbstractEmailBean emailBean) throws EmailProcessException{
if(StringUtils.isEmpty(emailBean.getFromAddress())){
throw new EmailProcessException(EmailProcessException.EMAIl_FROM_ADDRESS_IS_EMPTY);
}
if(StringUtils.isEmpty(emailBean.getToEmail())){
throw new EmailProcessException(EmailProcessException.EMAIl_TO_ADDRESS_IS_EMPTY);
}
if(StringUtils.isEmpty(emailBean.getReplyToEmail())){
throw new EmailProcessException(EmailProcessException.EMAIl_REPLY_TO_ADDRESS_IS_EMPTY);
}
}