Hi Ezra, thanks for the report. I’ll investigate and make tests.
Hi, I’ve just made some tests.
1) A subscriber unsubscribed using the link in a previous newsletter, then the admin created a newsletter and a recipient list with all subscribers, then the admin sent newsletter: as expected the just-unsubscribed-email was not included in recipient list and did not receive newsletter.
2) the admin created a newsletter and a recipient list with all subscribers, THEN a subscriber unsubscribed using the link in a previous newsletter, then the admin sent newsletter: the just-unsubscribed-email DID receive the newsletter because he/she was subscribed yet at the moment of recipient list generation.
Maybe the 2nd issue happened in your case.
Can you try these 2 scenarios by yourself and report what happens? Have you got to suggest more scenarios that I forgot and I have to test? Thank you.
For me, neither scenario is likely true. I’ve received more than one newsletter since I unsubscribed. I would have used the admin interface to unsubscribe.
So my situation is that my email is not currently in the receiver list. My email is in the unsubscriber list but somehow I’ve still received newsletters.
I know this seems like a very unlikely bug. I can’t imagine your code doing anything other than simply looping through the list of email addresses on the subscriber list yet somehow, at least one address not on that list in the database keeps receiving newsletters.
I should also mention that I subscribed by calling your code directly using alo_em_add_subscriber_to_list()
The mailing list was also created by directly using:
alo_em_get_mailinglists()
alo_em_save_mailinglists()