contactlist emails, chamge from forms to url's because forms not always work with several email clients.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1150558 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hans Bakker
2011-07-25 06:30:19 +00:00
parent 19f6852396
commit c4eee65731
5 changed files with 31 additions and 45 deletions
@@ -20,18 +20,12 @@ under the License.
<body>
<p class="tabletext">Hello ${partyName.firstName?if_exists} ${partyName.lastName?if_exists} ${partyName.groupName?if_exists}!</p>
<p class="tabletext">Successfully subscribed from ${contactList.contactListName} contact list.</p>
<#assign verifyUrl = baseEcommerceSecureUrl + "updateContactListPartyNoUserLogin" />
<form method="post" id="contactListOptOut" action="${verifyUrl}">
<fieldset>
<input type="hidden" name="contactListId" value="${contactListParty.contactListId}" />
<input type="hidden" name="partyId" value="${contactListParty.partyId}" />
<input type="hidden" name="preferredContactMechId" value="${contactListParty.preferredContactMechId?if_exists}" />
<input type="hidden" name="fromDate" value="${contactListParty.fromDate}" />
<input type="hidden" name="statusId" value="CLPT_UNSUBS_PENDING" />
<input type="hidden" name="optInVerifyCode" value="${contactListPartyStatus.optInVerifyCode?if_exists}" />
<input type="hidden" name="baseLocation" value="${baseLocation?if_exists}" />
<input type="submit" name="submitButton" value="Click here to unsubscribe your newsletter subscription." />
</fieldset>
</form>
<#assign verifyUrl = baseEcommerceSecureUrl +'updateContactListPartyNoUserLogin?contactListId='+contactListParty.contactListId+'&amp;partyId='+contactListParty.partyId+'&amp;fromDate='+contactListParty.fromDate+'&amp;statusId=CLPT_UNSUBS_PENDING&amp;optInVerifyCode='+contactListPartyStatus.optInVerifyCode+'&amp;baseLocation='+baseLocation?if_exists>
<#if (contactListParty.preferredContactMechId)?exists>
<#assign verifyUrl= verifyUrl+"&amp;preferredContactMechId="+contactListParty.preferredContactMechId>
</#if>
<a href="${verifyUrl}">If this was by mistake, click here to unsubscribe your subscription again.</a>
</body>
</html>
@@ -20,5 +20,14 @@ under the License.
<body>
<p class="tabletext">Hello ${partyName.firstName?if_exists} ${partyName.lastName?if_exists} ${partyName.groupName?if_exists}!</p>
<p class="tabletext">Successfully unsubscribed from ${contactList.contactListName} contact list.</p>
<#assign verifyUrl = baseEcommerceSecureUrl +'updateContactListPartyNoUserLogin?contactListId='+contactListParty.contactListId+'&amp;partyId='+contactListParty.partyId+'&amp;fromDate='+contactListParty.fromDate+'&amp;statusId=CLPT_SUBS_PENDING&amp;optInVerifyCode='+contactListPartyStatus.optInVerifyCode+'&amp;baseLocation='+baseLocation?if_exists>
<#if (contactListParty.preferredContactMechId)?exists>
<#assign verifyUrl= verifyUrl+"&amp;preferredContactMechId="+contactListParty.preferredContactMechId>
</#if>
<a href="${verifyUrl}">If this was by mistake, click here subscribe again.</a>
</body>
</html>
@@ -32,21 +32,12 @@ under the License.
<p class="tabletext">Hello ${partyName.firstName?if_exists} ${partyName.lastName?if_exists} ${partyName.groupName?if_exists}!</p>
<p class="tabletext">We have received a request for unsubscription to the ${contactList.contactListName} contact list.</p>
<p class="tabletext">To complete your unsubscription use the verify form in your <a href="${baseEcommerceSecureUrl}viewprofile">online profile</a>, or use the following link:</p>
<#if (contactListPartyStatus.optInVerifyCode)?has_content><p class="tabletext">Your verify code is: ${contactListPartyStatus.optInVerifyCode}</p></#if>
<p class="tabletext">To complete your unsubscription click the on the following link:</p>
<#assign verifyUrl = baseEcommerceSecureUrl + "contactListOptOut" />
<form method="post" id="contactListOptOut" action="${verifyUrl}">
<fieldset>
<input type="hidden" name="communicationEventId" value="${communicationEventId}" />
<input type="hidden" name="contactListId" value="${contactListParty.contactListId}" />
<input type="hidden" name="partyId" value="${contactListParty.partyId}" />
<input type="hidden" name="preferredContactMechId" value="${contactListParty.preferredContactMechId?if_exists}" />
<input type="hidden" name="fromDate" value="${contactListParty.fromDate}" />
<input type="hidden" name="statusId" value="CLPT_UNSUBSCRIBED" />
<input type="hidden" name="optInVerifyCode" value="${contactListPartyStatus.optInVerifyCode?if_exists}" />
<input type="submit" name="submitButton" value="Please click here to verify your newsletter unsubscription." />
</fieldset>
</form>
<#assign verifyUrl = baseEcommerceSecureUrl+'contactListOptOut?contactListId='+contactListParty.contactListId+'&amp;communicationEventId='+communicationEventId?if_exists+'&amp;partyId='+contactListParty.partyId+'&amp;fromDate='+contactListParty.fromDate+'&amp;statusId=CLPT_UNSUBSCRIBED&amp;optInVerifyCode='+contactListPartyStatus.optInVerifyCode>
<#if (contactListParty.preferredContactMechId)?exists>
<#assign verifyUrl= verifyUrl+"&amp;preferredContactMechId="+contactListParty.preferredContactMechId>
</#if>
<a href="${verifyUrl}">Please click here to verify your unsubscription.</a>
</body>
</html>
@@ -32,21 +32,13 @@ under the License.
<p class="tabletext">Hello ${partyName.firstName?if_exists} ${partyName.lastName?if_exists} ${partyName.groupName?if_exists}!</p>
<p class="tabletext">We have received a request for subscription to the ${contactList.contactListName} contact list.</p>
<p class="tabletext">To complete your subscription use the verify form in your <a href="${baseEcommerceSecureUrl}viewprofile">online profile</a>, or use the following link:</p>
<#if (contactListPartyStatus.optInVerifyCode)?has_content><p class="tabletext">Your verify code is: ${contactListPartyStatus.optInVerifyCode}</p></#if>
<p class="tabletext">To complete your subscription click the on the following link:</p>
<#assign verifyUrl = baseEcommerceSecureUrl+'updateContactListPartyNoUserLogin?contactListId='+contactListParty.contactListId+'&amp;partyId='+contactListParty.partyId+'&amp;fromDate='+contactListParty.fromDate+'&amp;statusId=CLPT_ACCEPTED&amp;optInVerifyCode='+contactListPartyStatus.optInVerifyCode+'&amp;baseLocation='+baseLocation?if_exists>
<#if (contactListParty.preferredContactMechId)?exists>
<#assign verifyUrl= verifyUrl+"&amp;preferredContactMechId="+contactListParty.preferredContactMechId>
</#if>
<a href="${verifyUrl}">Please click here to verify your subscription.</a>
<#assign verifyUrl = baseEcommerceSecureUrl + "updateContactListPartyNoUserLogin" />
<form method="post" id="updateContactListPartyNoUserLogin" action="${verifyUrl}">
<fieldset>
<input type="hidden" name="contactListId" value="${contactListParty.contactListId}" />
<input type="hidden" name="partyId" value="${contactListParty.partyId}" />
<input type="hidden" name="preferredContactMechId" value="${contactListParty.preferredContactMechId?if_exists}" />
<input type="hidden" name="fromDate" value="${contactListParty.fromDate}" />
<input type="hidden" name="statusId" value="CLPT_ACCEPTED" />
<input type="hidden" name="optInVerifyCode" value="${contactListPartyStatus.optInVerifyCode?if_exists}" />
<input type="hidden" name="baseLocation" value="${baseLocation?if_exists}" />
<input type="submit" name="submitButton" value="Please click here to verify your newsletter subscription." />
</fieldset>
</form>
</body>
</html>
@@ -1338,7 +1338,7 @@ under the License.
<response name="error" type="view" value="main"/>
</request-map>
<request-map uri="contactListOptOut" track-serverhit="false" track-visit="false">
<security https="true" auth="false"/>
<security https="false" auth="false"/>
<event type="service" invoke="updateContactListPartyNoUserLogin"/>
<response name="success" type="view" value="ContactListOptOut"/>
</request-map>
@@ -1593,7 +1593,7 @@ under the License.
<response name="error" type="view" value="viewprofile"/>
</request-map>
<request-map uri="updateContactListPartyNoUserLogin">
<security https="true" auth="false"/>
<security https="false" auth="false"/>
<event type="service" invoke="updateContactListPartyNoUserLogin"/>
<response name="success" type="view" value="main"/>
<response name="error" type="view" value="main"/>