Skip to content

Commit 884d64b

Browse files
committed
added check for sandbox domain
1 parent 2df7165 commit 884d64b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sparkpost.class.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,8 @@ public function init_sp_http_mailer($args)
120120
}
121121
return $args;
122122
}
123+
124+
static function is_sandbox($email) {
125+
return array_slice(explode('@', $email), -1)[0] === 'sparkpostbox.com';
126+
}
123127
}

0 commit comments

Comments
 (0)