Author Topic: Ban unsubscribers automatically  (Read 2166 times)

sanj

  • Posts: 54
    • View Profile
Ban unsubscribers automatically
« on: March 29, 2007, 03:13:24 am »
hi

Here is my problem
Following purchase of a product, a customer is added to my LMP list.

That customer gets en email 3 days after their purchase and decides to unsubscribe.

Two weeks later, they buy another product and ends up on the list again.

Is there a way to prevent existing email from being added to certain lists again following their first unsubscribe without having to manually add their email address to signup.php

thanks
sanj
Magnetic Therapy Natural Pain Relief for Arthritis, Back Pain and More... at http://www.worldofmagnets.co.uk

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Ban unsubscribers automatically
« Reply #1 on: March 29, 2007, 03:40:26 am »
SanJ,

Are your subscribers being added with the Simpler PHP insertion script?

If so, apart from the obvious addition of an "ignore_removed" LMP option, you could enable the "signup-xtra.php" file to do some post-signup processing.  The thing is the users' entry would be overwritten so the previous data would not be available.  You would need to add the user to two lists originally, then check if the user is still on the dummy list and re-remove them so they don't receive followups.  This would, however, result in the welcome message being sent from the list that you don't want them back on - is that a problem?

"ignore_removed" would be done as follows.  In signup.php, change this:
Code: [Select]
  if($xcnf<>'1'){
    // overwrite
    $uids[$list] = $xuid;

To this:
Code: [Select]
  if($xcnf<>'1'){
    if($ignore_removed){
     $dupes[$list] = $xuid; // call it a dupe
    } else {
     // overwrite
     $uids[$list] = $xuid;
    }

Then in your signup URL, add "&ignore_removed=1"

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

sanj

  • Posts: 54
    • View Profile
Ban unsubscribers automatically
« Reply #2 on: March 29, 2007, 04:46:13 am »
hi dean,

sorry i did not explain my self properly.

It's a closed list. I manually import subscribers in it from my shop cart database.

so, when i do the import i want LMP to ignore previously unsubscribed users.

thanks

p.s If there is a way of doing this will i have to enable "keep removed users in database" for that particular list
Magnetic Therapy Natural Pain Relief for Arthritis, Back Pain and More... at http://www.worldofmagnets.co.uk

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Ban unsubscribers automatically
« Reply #3 on: March 29, 2007, 05:59:32 am »
If you use the "User Database" -> "Import" page there is an option
Quote
Do not overwrite unconfirmed, previously removed or bounced users (if kept in database)

Yes you would need to keep your users in the database.

There is not, at this time, a method to enable this when manually adding users, however it would be quite easy... I could instruct you on how to add it and then I would add it to future updates.

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

sanj

  • Posts: 54
    • View Profile
Ban unsubscribers automatically
« Reply #4 on: March 29, 2007, 06:41:54 am »
thanks for your help.

I usually use the import feature.

Can't wait for the next version!
Magnetic Therapy Natural Pain Relief for Arthritis, Back Pain and More... at http://www.worldofmagnets.co.uk