Trigger for unsubscribe to go to global suppression list

MDG Computers

Beginner
Sep 16, 2020
9
2
3
We tried to set up a Trigger for unsubscribe as per the documentation to suppress, but this doesn't work, it didn't add to Global suppression list.
It is supposed to work as per Mumara IT support, if it doesn't they suggested they could write a simple php cron for direct db operations

Will you be able to provide the query.
Thank you
 

AdnanR

Beginner
Staff member
Jul 31, 2019
2
2
3
Hi MDG!
I am attaching the zip file that has a php file unsubscribe.php. First You need to rename a file("unsubscribe.php" to "unsubscribe_backup.php" ) in your installation directory for backup. Then place the attached unsubscribe.php file into your installation directory.
it`s functionality is:
when someone will try to unsubscribe from any list, that contact email will be added to global suppression list.
in the file on line # 98 there is a function addToGlobalSuppression($result_subscriber,$dt,'unsubscribed list');
you can override its third parameter (this parameter is label for suppression list)
 

Attachments

  • Like
Reactions: wasif