I’m trying to make a change to the admin email notification sent when someone unsubscribes. I’ve tracked it down to this line of code (line 889) on index.php:
sendAdminCopy('List unsubscription', $email . " has unsubscribed\n$reason", $subscriptions);
Currently the subscriber email address and reason for unsubscribing (if provided) is all that is sent in the message. This is fine if the subscriber hasn’t changed their email address but if they have — then it becomes impossible to match by email against the in-house database.
I tried the obvious, adding placeholders (eg. [FIRST NAME]) and a couple other stabs at the code but no luck.
Any suggestions on adding user attributes to admin notifications?