Bounce Action for Bounced Emails

More
1 year 2 months ago - 1 year 2 months ago #1 by Chris
Bounce Action for Bounced Emails was created by Chris
I would like to suggest adding a new "bounce address action" maybe like "Set Subscriber to Bounced Email" to differentiate subscribers whose email is UNCOMFIRMED and one we know has bounced.     One could have an unconfirmed email address that is actually valid.  A bounced email is one we know is INVALID.  This would enable someone to differentiate between the email addresses (unconfirmed and valid / bounced) and then allow filtering on that "bounced" status.  once filtered, the site admin can delete those subscribers who has an invalid email address.

Here is my motivation.   We have end users who enter email addresses on their team pages for all team contacts.  There could be 1-n number of contacts with email addresses entered.  There is no process to actually confirm them.  We then import them info NSPro using the following function in our adapter.
Code:
public function addSubscriber($name, $email) {     $datetime = date("Y-m-d H:i:s");     $mailinglist = array($this->defaultlist);     //add_or_update_subscriber($name, $email, $datetime, 0, $mailing_lists, $update = true, $source = 'component', $source_id = 'auto')     add_or_update_subscriber($name, $email, $datetime, 0, $this->defaultlist); }


This uses the NSPro add_or_update_subscriber function in the lib.php file.  I believe the default status of the subscriber when using this function is 'unconfirmed' - I'll need to check.

It just seems to me that others may benefit from being able to differentiate subscribers who are UNCONFIRMED and those who are UNCONFIRMED AND BOUNCED.

Let me know your thoughts!

Chris






 
Last edit: 1 year 2 months ago by Chris.

Please Log in or Create an account to join the conversation.

  • Christopher Mavros
  • Christopher Mavros's Avatar
  • Offline
  • Administrator
  • Administrator
More
1 year 2 months ago - 1 year 2 months ago #2 by Christopher Mavros
Replied by Christopher Mavros on topic Bounce Action for Bounced Emails
Hello Chris and thank you for posting.

When a user is subscribed through the add_or_update_subscriber function, you get the option to pass the Confirmed status, as the fourth argument.
The correct declaration of this function is:
Code:
add_or_update_subscriber($name, $email, $datetime, $conf, $mailing_lists, $update = true, $source = 'component', $source_id = 'auto')

$conf can be any of the following values:
  • Y, y, T, t, true, confirmed, 1 or anything "truish" in PHP will resolve to boolean true.
  • 0, false or anything "falsy" will resolve to boolean false.
  • "send" will send a confirmation email if double opt-in is enabled in the Component Options.

I'm discussing this with another administrator as well, and I'm leaning towards implementing the following two measures:
  1. Add a new table to keep track of how many times an email address has bounced.
  2. Add a separate bounce action per 1, 2, 3 or more times that an email has bounced.
  3. Implement a bounce action to add to a custom mailing list, so that you can create an unpublished "Bounced" list and have them added to that list.
What do you think?

Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!
Last edit: 1 year 2 months ago by Christopher Mavros.

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #3 by Chris
Replied by Chris on topic Bounce Action for Bounced Emails
That sounds reasonable.  I think it would address the need to identify those that bounced and from the additional table, you can then take action on those specific emails.   In addition, I am making code changes in my extension that will perform some additional validations by connecting to the SMTP server and ensuring the email address is valid PRIOR to allowing it to be imported into NSPro.

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #4 by Floris
Replied by Floris on topic Bounce Action for Bounced Emails
I agree—it would be useful to only disable email addresses after two or three bounces, rather than after the first one. Sometimes bounces are temporary, for example, due to a full mailbox.I also noticed that some emails marked as bounced still appear as delivered in cPanel, so it would make sense not to disable those immediately.Being able to distinguish bounced emails by placing them on a separate list (or using another method) would also be a helpful feature, as it makes it easier to track when and how often a specific address has bounced.

Please Log in or Create an account to join the conversation.

  • Christopher Mavros
  • Christopher Mavros's Avatar
  • Offline
  • Administrator
  • Administrator
More
1 year 1 month ago #5 by Christopher Mavros
Replied by Christopher Mavros on topic Bounce Action for Bounced Emails
Hi everyone!

I have now implemented separate bounce actions for the first, second and third time that an email address bounces, and as such also keep track of bounces per email address.
I also included the ability to add to a list when an email address bounces.

These features will be available in the next release which should be available within the week.

Thanks again for your suggestions!
 

Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!

Please Log in or Create an account to join the conversation.

Moderators: Christopher Mavros