mailOrder.addRecipient(this.getMailTo());
}
if (this.getLogDirectory() != null && this.getLogDirectory().length() > 0) {
mailFile = this.getMailFile(this.getLogDirectory());
mailOrder.dumpMessageToFile(mailFile, true);
}
mailOrder.setModifiedBy(spooler_task.job().name());
mailOrder.setJobId(spooler_task.id());
if (this.isLogOnly()) {
message = "mail was NOT sent but stored to file: " + mailFile.getAbsolutePath();