I’m encountering a very specific and persistent issue regarding admin email notifications for unsubscriptions, which seems to be directly tied to the UNSUBSCRIBE_CONFIRMATION setting.
My Goal:
My primary goal is to have a single-click unsubscribe process for users (meaning they do not receive a confirmation email when they unsubscribe). However, I do want to receive an email notification as an administrator when an unsubscribe occurs.
Observed Behavior & Current Configuration:
In my config.php, I have:
define(‘UNSUBSCRIBE_CONFIRMATION’, false);
When UNSUBSCRIBE_CONFIRMATION is set to false, users successfully unsubscribe immediately without a confirmation email. However, I, as the administrator, do NOT receive any unsubscribe notification.
The Critical Finding:
If I change the setting to:
define(‘UNSUBSCRIBE_CONFIRMATION’, true);
…then, when a user unsubscribes, I DO receive the admin unsubscribe notification email. The downside is that in this scenario, the unsubscribing user also receives a confirmation email, which is not my desired behavior for user experience.
This indicates that the UNSUBSCRIBE_CONFIRMATION parameter is unexpectedly affecting not only the user’s confirmation email but also the admin’s unsubscribe notification email. This behavior seems contrary to the setting’s documentation, which typically focuses on the user-side confirmation process.
I’m at a loss for how to achieve both a single-click unsubscribe for users AND reliable admin notifications. Is this a known bug or an intended (though unusual) dependency? Is there a workaround to decouple the admin notification from the UNSUBSCRIBE_CONFIRMATION setting?
Any guidance or suggestions would be greatly appreciated!