Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request : add type of bounce : soft or hard bounce #3

Open
kcassam opened this issue Oct 16, 2013 · 1 comment
Open

Feature request : add type of bounce : soft or hard bounce #3

kcassam opened this issue Oct 16, 2013 · 1 comment

Comments

@kcassam
Copy link

kcassam commented Oct 16, 2013

add a getType() function.

code/type table can be found her for example : http://www.activecampaign.com/help/bounces-soft-bounce-vs-hard-bounce/

@rbairwell
Copy link

I'm just looking into this and according to the "official" RFC concerning status codes - http://tools.ietf.org/html/rfc3463 ("official" - meaning software should follow the specification, but they don't always), 5.xxx.xxx should be treated as permanent failures ("hard" bounces) whereas 4.xxx.xxx should be treated as persistent transient failures ("soft" bounces - as a retry can be attempted). This is the current settings of PHP-Bounce-Handler.

I'm not sure how ActiveCampaign compiled their status code list, but it would need that sort of functionality, use something like:

$facts=$bouncehandler->get_the_facts($email);
$code=$bouncehandler->format_status_code($facts[0]['status']);
if (true===in_array($code['code'],array('5.2.0','5.2.1','5.2.2'...))) {
 return "soft";
} else {
 return "hard";
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants