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:
Then you went to change:Code:$removeme_url_template='http://yourcompany.com/newsletter/removeme.php?identifier='.$this->target_tracker_key;
/modules/EmailTemplates/EmailTemplate.php
On line 325 add the line:
You have to do this because the $removeme_url_template is placed after the url of your CRM.Code:$template_text=str_replace('crmurlhttp://yourcompany.com/newsletter/removeme.php','http://yourcompany.com/newsletter/removeme.php',$template_text);
Now the clients sees your own opt out url.
The Voys removeme.php page looks like this:
Now you have to make sure you can have a personal opt-out message which is formattedCode:<!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"> </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>
You have to change:
/Campaigns/RemoveMe.php.
On line 91 add:
Place the above after:Code:header('HTTP/1.1 301 Moved Permanently'); header('Location: http://yourcompany.com/newsletter/removeme.php?p=opt-put');
Your are all done now!Code://Print Confirmation Message. echo $mod_strings['LBL_ELECTED_TO_OPTOUT'];
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!


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks