Skip addresses that exceed bounce score threshold.
This commit is contained in:
parent
2e27fd5c21
commit
1167a11ba7
4 changed files with 31 additions and 1 deletions
|
|
@ -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 );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue