Skip addresses that exceed bounce score threshold.

This commit is contained in:
Martin Kamerbeek 2010-05-20 17:57:36 +02:00
parent 2e27fd5c21
commit 1167a11ba7
4 changed files with 31 additions and 1 deletions

View file

@ -163,6 +163,18 @@ sub send {
return;
}
# Check bounce score
my $bounceScoreOk = WebGUI::Mailing::Bounce->new( $session )->bounceScoreOk( $to );
if ( !$self->get( 'isTest' ) && !$bounceScoreOk ) {
$self->update( {
status => 'skipped',
sendDate => time,
errorMessage => "Bounce score for $to too high",
} );
return;
}
# Fetch subject
my $subject = $asset->getSubject( $configuration );