embryo wrote:Or maybe if I just knew the format of the %NewsLetterSubscription.DeactivationUrl%, I could programmatically assemble the NewsLetterSubscription.DeactivationUrl myself...
I've tried the test email function on a test campaign I created, and it does not render those links in the email...I've tried it to a customer email which is subscribed to the newsletter, and to another which was not. Neither renders the %NewsLetterSubscription.DeactivationUrl%
For example, does it look like this:
http://www.mydomain.com/newsletter/
[email protected]???
It look like this:
http://www.yourstore.com/newsletter/subscriptionactivation/DEDB4B5A-CA64-4951-8AB7-20783442E7EE/false
"DEDB4B5A-CA64-4951-8AB7-20783442E7EE" mean for "NewsLetterSubscriptionGuid"
"false" mean for "deactivate"
embryo wrote:Maybe a topic page with a form and email-address-to-unsubscribe field, which somehow posts to the NewsLetterSubscription controller using GET...so that it behaves as if the %NewsLetterSubscription.DeactivationUrl% link in a campaign is clicked???
If you want to do this solution, I think yes, you can do it.
Following are my steps to get it work:
- Create a topic named "Unsubscribe"
- Inside its body content, switch to HTML code mode, write code to render:
+ An email textbox field in order to get unsubscribe email from user
+ A submit button, when submit button click, unsubscribe request will send to nopCommerce Newsletter controller
+ Here, controller will use NewsletterService to find subscribed by the given email address
+ If found, send deactivate link following above format to found email address.
Hope this help :)