Page 1 of 1

same unsubscribe flow as yours ?

Posted: Wed Sep 27, 2006 5:55 pm
by sfantul
I want to have the same flow as u have for my users that want to unsubscribe.
Meaning:
1) in the mail there is a link which goes to the redirect server
2) this server redirects to a page of my public website ( the first page that the user will see) which asks for confirmation
3) the confirmation is send to a form created in the interface (on redirect server)
4) this form perform the unsubscribe action and then redirects to a new page in the public website (the second page that the user will see)

What i dont know is how i can make the redirect in step 4.
and also i didnt understand how the concluding action in forms can be used (maybe this is the answer to my first question).
Pls note that i read the user guide example for unsubscribing but in that example both pages that the user will see are generated by the redirect sever not by the public server .(i want users to see only html pages)

Posted: Wed Sep 27, 2006 7:21 pm
by maschoff
I will post the code we use for the OpenEMM newsletter below:

1. unsubscribe link in e-mail:

Code: Select all

http://www.openemm.org:8080/form.do?agnCI=1&agnFN=unsubscribe&agnUID=##AGNUID##
2. unsubscribe form in OpenEMM:

2.a pre-form action:

Code: Select all

Steps: 1. Load customer record
2.b redirect code:

Code: Select all

<html>
  <head>
    <title></title>
    <meta http-equiv="refresh" content="0; URL=http://www.openemm.org/unsubscribe.html?agnUID=$!agnUID">
  </head>
</html>
3. form on web page:

Code: Select all

<script type="text/javascript">
  uid = location.search;
  uid = unescape(uid.substring(8)); 
</script>

<form name="unsubform" action="http://www.openemm.org:8080/form.do" method="post" onSubmit="document.getElementById('param').value = uid;">
<input type="hidden" name="agnCI" value="1">
<input type="hidden" name="agnFN" value="unsubconfirm">
<input type="hidden" name="agnUID" id="param" value=test>
<input type="submit" class="inputsubmit" value="Unsubscribe">
</form>
4. unsubconfirm form in OpenEMM

4.a pre-form action:

Code: Select all

Steps: 1. Unsubscribe
4.b redirect code

Code: Select all

<html>
  <head>
    <title></title>
    <meta http-equiv="refresh" content="0; URL=http://www.openemm.org/unsubconfirm.html">
  </head>
</html>
4.c post-form action:

Code: Select all

Steps: 1. Send mailing
Hopefully, this example will help!

Posted: Wed Sep 27, 2006 7:44 pm
by sfantul
i understand thank u very much