Results 1 to 2 of 2

Thread: Campaign opt-out from newsletter

  1. #1
    lenz1979 is offline Sugar Community Member
    Join Date
    Jun 2009
    Posts
    68

    Default Campaign opt-out from newsletter

    HellO!

    if a user clicks the opt-out link in an email he will be removed from the target-list of this newslettercampaign.
    In the Status of the Campaign i can also see this user listed in the list of "no emails"...

    BUT: shouldn`t the user also be automatically added to the Suppression List of that campaign?

    in my 5.2k CE installation the user will not be added to the suppression list . the user will be removed from standardlist only. if i would add him again to the standardlist he would get new email again for next marketing.

    any help?

    regards

  2. #2
    lenz1979 is offline Sugar Community Member
    Join Date
    Jun 2009
    Posts
    68

    Default Re: Campaign opt-out from newsletter

    ok found the problem..

    was a bad bug in 5.2 in campaign / utils.php

    PHP Code:
     $exempt_id '';
            foreach(
    $curr_pl_arr as $user_list){
                foreach(
    $pl_arr as $v){
                    if(
    in_array($v['id'], $user_list) && $v['list_type'] == 'exempt'){
                        
    $already_here 'true';
                        
    $exempt_id $v['id'];
                        break 
    2;
                    }
                }
            }
    ...
    ...
    ...
     if(
    $already_here =='true'){
                
    //do nothing, user is already exempted
            
    die("1");
            }else{
                
    //user is not exempted yet , so add to unsubscription list
                
    require_once('modules/ProspectLists/ProspectList.php');
                
    $exempt_result $exempt_list->retrieve($exempt_id);
                if(
    $exempt_result == null)
                {
    //error happened while retrieving this list
                    
    return;
                }
                
    $GLOBALS['log']->debug("In Campaigns Util, loading relationship: ".$relationship);
                
    $exempt_list->$relationship->add($focus->id);
            } 
    the $emept_id was never set in case of already_here= false ........

    this seems to be fixxed in 5.5

    i copied the code from the unsubscribe function from 5.5 to my 5.2 and now it works fine.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Daily Newsletter Campaign?
    By alek75 in forum Marketing/Campaign Management
    Replies: 19
    Last Post: 2010-05-29, 09:10 AM
  2. Scheduling in Newsletter Campaign
    By deveshm in forum General Discussion
    Replies: 9
    Last Post: 2009-06-16, 05:36 AM
  3. Global Opt Out in Newsletter Campaign
    By PHBA in forum Developer Help
    Replies: 1
    Last Post: 2008-12-04, 12:46 PM
  4. Campaign newsletter questions
    By gmgartner in forum Help
    Replies: 2
    Last Post: 2007-06-16, 06:14 AM
  5. Newsletter/e-mail campaign question
    By Paula K. in forum Marketing/Campaign Management
    Replies: 1
    Last Post: 2006-10-30, 07:19 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •