From c4eee657311d9d22e283d8f0d82a71a9bdf3f2ce Mon Sep 17 00:00:00 2001 From: Hans Bakker Date: Mon, 25 Jul 2011 06:30:19 +0000 Subject: [PATCH] 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 --- .../email/ContactListSubscribeEmail.ftl | 20 ++++++----------- .../email/ContactListUnsubscribeEmail.ftl | 9 ++++++++ .../ContactListUnsubscribeVerifyEmail.ftl | 21 +++++------------- .../email/ContactListVerifyEmail.ftl | 22 ++++++------------- .../webapp/ecommerce/WEB-INF/controller.xml | 4 ++-- 5 files changed, 31 insertions(+), 45 deletions(-) diff --git a/ecommerce/templates/email/ContactListSubscribeEmail.ftl b/ecommerce/templates/email/ContactListSubscribeEmail.ftl index f01a7068f..3c006837c 100644 --- a/ecommerce/templates/email/ContactListSubscribeEmail.ftl +++ b/ecommerce/templates/email/ContactListSubscribeEmail.ftl @@ -20,18 +20,12 @@ under the License.

Hello ${partyName.firstName?if_exists} ${partyName.lastName?if_exists} ${partyName.groupName?if_exists}!

Successfully subscribed from ${contactList.contactListName} contact list.

- <#assign verifyUrl = baseEcommerceSecureUrl + "updateContactListPartyNoUserLogin" /> -
-
- - - - - - - - -
-
+ + <#assign verifyUrl = baseEcommerceSecureUrl +'updateContactListPartyNoUserLogin?contactListId='+contactListParty.contactListId+'&partyId='+contactListParty.partyId+'&fromDate='+contactListParty.fromDate+'&statusId=CLPT_UNSUBS_PENDING&optInVerifyCode='+contactListPartyStatus.optInVerifyCode+'&baseLocation='+baseLocation?if_exists> + <#if (contactListParty.preferredContactMechId)?exists> + <#assign verifyUrl= verifyUrl+"&preferredContactMechId="+contactListParty.preferredContactMechId> + + If this was by mistake, click here to unsubscribe your subscription again. + diff --git a/ecommerce/templates/email/ContactListUnsubscribeEmail.ftl b/ecommerce/templates/email/ContactListUnsubscribeEmail.ftl index fb147f66c..546c6b50e 100644 --- a/ecommerce/templates/email/ContactListUnsubscribeEmail.ftl +++ b/ecommerce/templates/email/ContactListUnsubscribeEmail.ftl @@ -20,5 +20,14 @@ under the License.

Hello ${partyName.firstName?if_exists} ${partyName.lastName?if_exists} ${partyName.groupName?if_exists}!

Successfully unsubscribed from ${contactList.contactListName} contact list.

+ + <#assign verifyUrl = baseEcommerceSecureUrl +'updateContactListPartyNoUserLogin?contactListId='+contactListParty.contactListId+'&partyId='+contactListParty.partyId+'&fromDate='+contactListParty.fromDate+'&statusId=CLPT_SUBS_PENDING&optInVerifyCode='+contactListPartyStatus.optInVerifyCode+'&baseLocation='+baseLocation?if_exists> + <#if (contactListParty.preferredContactMechId)?exists> + <#assign verifyUrl= verifyUrl+"&preferredContactMechId="+contactListParty.preferredContactMechId> + + If this was by mistake, click here subscribe again. + + + diff --git a/ecommerce/templates/email/ContactListUnsubscribeVerifyEmail.ftl b/ecommerce/templates/email/ContactListUnsubscribeVerifyEmail.ftl index c5a13ce48..187692d36 100644 --- a/ecommerce/templates/email/ContactListUnsubscribeVerifyEmail.ftl +++ b/ecommerce/templates/email/ContactListUnsubscribeVerifyEmail.ftl @@ -32,21 +32,12 @@ under the License.

Hello ${partyName.firstName?if_exists} ${partyName.lastName?if_exists} ${partyName.groupName?if_exists}!

We have received a request for unsubscription to the ${contactList.contactListName} contact list.

-

To complete your unsubscription use the verify form in your online profile, or use the following link:

- <#if (contactListPartyStatus.optInVerifyCode)?has_content>

Your verify code is: ${contactListPartyStatus.optInVerifyCode}

+

To complete your unsubscription click the on the following link:

- <#assign verifyUrl = baseEcommerceSecureUrl + "contactListOptOut" /> -
-
- - - - - - - - -
-
+ <#assign verifyUrl = baseEcommerceSecureUrl+'contactListOptOut?contactListId='+contactListParty.contactListId+'&communicationEventId='+communicationEventId?if_exists+'&partyId='+contactListParty.partyId+'&fromDate='+contactListParty.fromDate+'&statusId=CLPT_UNSUBSCRIBED&optInVerifyCode='+contactListPartyStatus.optInVerifyCode> + <#if (contactListParty.preferredContactMechId)?exists> + <#assign verifyUrl= verifyUrl+"&preferredContactMechId="+contactListParty.preferredContactMechId> + + Please click here to verify your unsubscription. diff --git a/ecommerce/templates/email/ContactListVerifyEmail.ftl b/ecommerce/templates/email/ContactListVerifyEmail.ftl index c209bac14..3ecaaa02b 100644 --- a/ecommerce/templates/email/ContactListVerifyEmail.ftl +++ b/ecommerce/templates/email/ContactListVerifyEmail.ftl @@ -32,21 +32,13 @@ under the License.

Hello ${partyName.firstName?if_exists} ${partyName.lastName?if_exists} ${partyName.groupName?if_exists}!

We have received a request for subscription to the ${contactList.contactListName} contact list.

-

To complete your subscription use the verify form in your online profile, or use the following link:

-<#if (contactListPartyStatus.optInVerifyCode)?has_content>

Your verify code is: ${contactListPartyStatus.optInVerifyCode}

+

To complete your subscription click the on the following link:

+ +<#assign verifyUrl = baseEcommerceSecureUrl+'updateContactListPartyNoUserLogin?contactListId='+contactListParty.contactListId+'&partyId='+contactListParty.partyId+'&fromDate='+contactListParty.fromDate+'&statusId=CLPT_ACCEPTED&optInVerifyCode='+contactListPartyStatus.optInVerifyCode+'&baseLocation='+baseLocation?if_exists> +<#if (contactListParty.preferredContactMechId)?exists> + <#assign verifyUrl= verifyUrl+"&preferredContactMechId="+contactListParty.preferredContactMechId> + +Please click here to verify your subscription. -<#assign verifyUrl = baseEcommerceSecureUrl + "updateContactListPartyNoUserLogin" /> -
-
- - - - - - - - -
-
diff --git a/ecommerce/webapp/ecommerce/WEB-INF/controller.xml b/ecommerce/webapp/ecommerce/WEB-INF/controller.xml index 8ee3f48d9..f5edb40b6 100644 --- a/ecommerce/webapp/ecommerce/WEB-INF/controller.xml +++ b/ecommerce/webapp/ecommerce/WEB-INF/controller.xml @@ -1338,7 +1338,7 @@ under the License. - + @@ -1593,7 +1593,7 @@ under the License. - +