public class EmailSenderController
extends java.lang.Object
| Constructor and Description |
|---|
EmailSenderController(EmailSender emailSender,
java.io.File toSendDir,
java.io.File sentDir) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanOldSentFiles(int daysBefore)
Removes old files from directory with sent files
|
protected boolean |
resendOnException(java.lang.Exception exception,
Email email) |
void |
sendAllExistingEmails() |
public EmailSenderController(EmailSender emailSender, java.io.File toSendDir, java.io.File sentDir)
public void sendAllExistingEmails()
protected boolean resendOnException(java.lang.Exception exception,
Email email)
public void cleanOldSentFiles(int daysBefore)
daysBefore - how old file in days to remove