Unsubscribe from all mailing lists?
Posted: Fri Jan 04, 2008 9:23 pm
How can this be accomplished - can a wildcard be used for agnMAILINGLIST?
The purpose of these forums is to get and give free technical support for OpenEMM. Spammers and their posts will be removed without prior warning.
https://iframe.agnitas.de/
Code: Select all
<form action="form.do" method="post">
<input type="hidden" name="agnCI" value="1">
<input type="hidden" name="agnFN" value="unsubscribe_all">
<input type="hidden" name="gender" value="2">
<input type="hidden" name="mailtype" value="1">
<input type="hidden" name="agnMAILINGLIST" value="1">
<input type="hidden" name="agnSUBSCRIBE" value="0">
<input type="hidden" name="agnMAILINGLIST_1" value="12">
<input type="hidden" name="agnSUBSCRIBE_1" value="0">
<input type="hidden" name="agnMAILINGLIST_2" value="23">
<input type="hidden" name="agnSUBSCRIBE_2" value="0">
email address to unsubscribe:
<input type="text" name="EMAIL">
<input type="submit" name=" Unsubscribe ">
</form>
Code: Select all
##unsubscribe script for more mailinglists
##set Company ID
#set($company = 1)
##Check the availability of the customer
#if($customerID != 0)
$BindingEntry.setCustomerID($customerID)
##define first mailinglist
$BindingEntry.setMailinglistID(1)
#if($BindingEntry.getUserBindingFromDB($company) == true)
#if($BindingEntry.getUserStatus() == 1)
$BindingEntry.setUserStatus(3)
$BindingEntry.setUserRemark("Opt-Out by Script")
$BindingEntry.updateBindingInDB($company)
#set($result="checked out from list A")
#else
#set($result="not active on list A")
#end
#else
#set($result="without binding to list A")
#end
##define second mailinglist
$BindingEntry.setMailinglistID(2)
#if($BindingEntry.getUserBindingFromDB($company) == true)
#if($BindingEntry.getUserStatus() == 1)
$BindingEntry.setUserStatus(3)
$BindingEntry.setUserRemark("Opt-Out by Script")
$BindingEntry.updateBindingInDB($company)
#set($result1="checked out from list B")
#else
#set($result1="not active on list B")
#end
#else
#set($result1="without binding to list B")
#end
#else
#set($result="not a customer of our mailings")
#set($result1="not a customer of our mailings")
#end
##necessary for a successful result
#set($scriptResult="1")
Code: Select all
<b>Success Form</b>
<p>You are $result<br>
and you are $result1</p>
Code: Select all
Error
Code: Select all
http://your.domain.com:8081/form.do?agnCI=1&agnFN=unsubscribe_more&agnUID=##AGNUID##