sendMessage();
}
protected void validateRequiredInfo() {
if (fromAddress == null) {
throw new IncompleteEmailException("From address cannot be null");
}
if (toAddresses.isEmpty()) {
throw new IncompleteEmailException(
"Email should have at least one to address");
}
if (subject == null) {
throw new IncompleteEmailException("Subject cannot be null");
}
if (body == null) {
throw new IncompleteEmailException("Body cannot be null");
}
}