Adding sending of batches and bounce processing.
This commit is contained in:
parent
d62f56a635
commit
f8cb8cd05a
5 changed files with 134 additions and 10 deletions
|
|
@ -49,12 +49,19 @@ sub execute {
|
|||
|
||||
# For now only process test mails.
|
||||
my $it = WebGUI::Mailing::Email->getQueuedTestEmails( $session );
|
||||
|
||||
while ( my $email = $it->() ) {
|
||||
return $self->WAITING(1) if time >= $maxTime;
|
||||
|
||||
$email->send;
|
||||
}
|
||||
|
||||
my $it = WebGUI::Mailing::Email->getSendableEmails( $session );
|
||||
while ( my $email = $it->() ) {
|
||||
$session->log->warn( "processing" . $email->getId );
|
||||
return $self->WAITING(1) if time >= $maxTime;
|
||||
|
||||
$email->send;
|
||||
}
|
||||
|
||||
return $self->COMPLETE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue