String subject = DomUtils.getTextValue(subjectEle).trim();
// content
Element contentEle = DomUtils.getChildElementByTagName(messageEle, "content");
String content = DomUtils.getTextValue(contentEle).trim();
//
MailConfig mailConfig = new MailConfig();
mailConfig.setMessageId(messageId);
mailConfig.setFrom(from);
mailConfig.setTo(toArray);
mailConfig.setCc(ccArray);
mailConfig.setSubject(subject);
mailConfig.setContent(content);
//
mailConfigHolder.add(mailConfig);
}
}