Skip to content

How to replicate unsubscribe event to my own user database?

edited November 2014 in Questions

Hello,

I'm starting to use Sendy and so far no big issue, I really love it.
However I would like to keep my own user database clean (in case I need to export it later) so I would like to add a listener on every unsubscribe (or hard bounce) events that occured on Sendy side and do an action on my own database. Is there a public function that I can hook up to do that ? If yes which file should I modified ? (I haven't look yet in the source code).

Thank you

Comments

  • Hi,

    You can set a custom 'Unsubscribe confirmation page' to redirect the user to after they unsubscribe. This custom page can be a script that also marks the same email in your database as unsubscribe, or delete it if you see fit. You can pass variables into your custom script so that your script can grab these $_GET variables and process them in your own database:

    Hope this helps.

    Best regards,
    Ben

  • hi Ben,

    yes this is working fine for when the action is triggered by the user.
    but when it's related to a hard bounce, how can i do the same ?

    thanks

  • You may want to edit /includes/campaigns/bounces.php and /includes/campaigns/complaints.php scripts and add in your own code to make changes to your own database.

  • i'll check it, thanks a lot and great script !

This discussion has been closed.