Results 1 to 5 of 5

Thread: Improving the opt-out email marketing features

  1. #1
    markv is offline Sugar Community Member
    Join Date
    Jun 2007
    Posts
    39

    Default Improving the opt-out email marketing features

    At Voys we have been using sugar for over two years and we love it. We have more insight and control over our business so let me first thank all the developers.

    One of the things we did not like about sugar was the opt-out function of de email marketing tool. First of, you directly opt-out (these is no "are you sure question"). We have loads of tech clients and they like to figure out what marketing tool we are using, to they test the opt-out feature, and then give us a call they did not want to opt-out. Not that useful.

    The second thing we didn't like is the ugly non formatted opt out message. Thats why we wanted to change the opt-out url that is generated by sugar. Furthermore we wanted tot change the opt-out message.

    So if you want to be able to give your client a choice when opting out, or you want your personal opt-out page, or you want your personal unsubscribe message, follow the instructions below.

    First of all you will want to adjusted the file:
    /modules/EmailMan/EmailMan.php

    On line 655 we changed the removeme_url to:
    Code:
    $removeme_url_template='http://yourcompany.com/newsletter/removeme.php?identifier='.$this->target_tracker_key;
    Then you went to change:
    /modules/EmailTemplates/EmailTemplate.php

    On line 325 add the line:
    Code:
    $template_text=str_replace('crmurlhttp://yourcompany.com/newsletter/removeme.php','http://yourcompany.com/newsletter/removeme.php',$template_text);
    You have to do this because the $removeme_url_template is placed after the url of your CRM.

    Now the clients sees your own opt out url.

    The Voys removeme.php page looks like this:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Uitschrijven</title>
    <link href="style.css" rel="stylesheet" type="text/css"/>
    </head>
    <?php
    $identifier = $_GET['identifier'];
    $p = $_GET['p'];
    ?>
    <body>
    <div id="container"> <a name="totop" id="totop">&nbsp;</a>
      <div id="top">
        <div id="logo"><a href="http://www.yourcompany.com"><img src="http://www.yourcompany.com/logo/gif" alt="logo yourcompany" title="Go to yourcompany.com 
    
    home page"/></a></div>
        <div id="page">
          <h1>Optout newsletter yourcompany.com</h1>
        </div>
      </div>
      <div id="content">
      <?
    	if ($p == "opt-out") {
    		echo "<p>Your personal optout message</p>";
    	} else {
      ?>
        <p> SUre you want to optout?</p>
        <form name="frmMail" method="get" action="http://www.yourcrm.com/index.php"/>
        <input type="hidden" name="entryPoint" value="removeme"/>
        <input type="hidden" name="identifier" value="<? echo $identifier; ?>"/>
        <input name="submit" type="submit" value="Yes" />
        <input name="No" type="button" value="No" onClick="parent.location='http://www.yourcompany.com/'"/>
        </form>
      <?
      }
      ?>
    	</div>
    </div>
    </body>
    </html>
    Now you have to make sure you can have a personal opt-out message which is formatted

    You have to change:
    /Campaigns/RemoveMe.php.

    On line 91 add:
    Code:
    header('HTTP/1.1 301 Moved Permanently');
    header('Location: http://yourcompany.com/newsletter/removeme.php?p=opt-put');
    Place the above after:
    Code:
    //Print Confirmation Message.
    echo $mod_strings['LBL_ELECTED_TO_OPTOUT'];
    Your are all done now!

    Special thanks to:
    whallify in http://www.sugarcrm.com/forums/showthread.php?t=22004
    eNick in http://www.sugarcrm.com/forums/showthread.php?t=46103
    and all the other active forum users!

    You can also look at http://www.sugarcrm.com/forums/showt...t=convert_urls to make things more easy!
    Last edited by markv; 2011-03-17 at 09:52 PM.
    Working at VoIP provider Voys
    Tweeting @markv (nl)
    Loving SugarCRM more with every update.

  2. #2
    Michelle12 is offline Junior Member
    Join Date
    Jun 2009
    Posts
    1

    Default Re: Improving the opt-out email marketing features

    Well,

    This is an interesting post. Thanks a lot for sharing it.

    Utilizing many email marketing strategies is to your full benefit. Of course, in addition to emails as a way of reaching out to people, never overlook the importance of other promotional tools, such as search engine optimization, social media marketing, press release submittal, and other forms of publicity. After all, your goal is to let as many people as possible know about your online business!

    __________________________
    Email Marketing

  3. #3
    johanw is offline Member
    Join Date
    Feb 2009
    Posts
    12

    Default Re: Improving the opt-out email marketing features

    Shouldn't it be possible to do this in an upgrade safe maner instead by changeing the removeme entrypoint?
    ---
    Johan Westin
    Redpill Linpro AB - Changing the game

  4. #4
    markv is offline Sugar Community Member
    Join Date
    Jun 2007
    Posts
    39

    Default Re: Improving the opt-out email marketing features

    Quote Originally Posted by johanw View Post
    Shouldn't it be possible to do this in an upgrade safe maner instead by changeing the removeme entrypoint?
    Yes it should.... go ahead
    Last edited by markv; 2009-11-13 at 09:14 AM.

  5. #5
    SugarDev.net is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    1,401

    Default Re: Improving the opt-out email marketing features

    F'ing A
    Developers go here
    Businesses go there (Dutch)

    Modules:
    SugarDev.net Developer Tools | Config | Dutch Language Pack
    "Nothing gets fixed unless there is a bug"

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Features for Traditional Marketing Methods
    By jjwdesign in forum Feature Requests
    Replies: 2
    Last Post: 2009-02-17, 07:00 PM
  2. Improving the Email Module
    By jasonadmin in forum Feature Requests
    Replies: 11
    Last Post: 2006-04-05, 01:40 PM
  3. Inbound email features
    By jayk in forum Feature Requests
    Replies: 1
    Last Post: 2006-03-02, 11:35 PM
  4. Replies: 1
    Last Post: 2005-05-02, 09:45 PM
  5. Replies: 0
    Last Post: 2005-05-02, 01:51 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
  •