Our newsletters that EPiMail sends out has an "Unsubscribed" link. But I need to pass the recipient's guid with this link as I need the guid on my unsubscribed page. Is it somehow possible to include the guid in the recipient's email like with the other attributes e.g. §guid§
If not, the other option is to pass the recipient's email address as part of the querystring, but then how can I use an email address to get a Recipient object that I can use to unsubscribe the user?
Or is there an easier way to flag a recipient as unsubscribed?
In the next release of EPiServer Mail (4.4.1), the attribute §recipientId§ will be available as you suggest. The release date is not yet set but not very far away.
Trying to get the unsubscribe thing to work. If I just add the §unsubscribeUrl§ I get the correct link, but as soon as i put it in a A tag, one of the querys gets washed away.
I have this in my EpiserverMail.config:unsubscribeUrl="UnsubscribeEpimail.aspx?rid=§recipientId§&mid=§messageId§"
<a href="§unsubscribeUrl§">Klicka hr om du ej vill ha flera nyhetsbrev</a> the query looks fine in the mail but when I get to the unsubscribe page the query looks like this:http://MYSITE/Templates/Public/Pages/Epimail/UnsubscribeEpimail.aspx?rid=164f5437-608f-493a-a00c-724766cedb04
the query looks fine in the mail but when I get to the unsubscribe page the query looks like this:
http://world.episerver.com/en/Blogs/Alistair-Garrison/Dates/2009/9/Inserting-an-unsubscribe-link-into-an-HTML-Template-in-EPiServerMail-44/ should explain that. And do note the "final note". :-)
I could not get unsubscribe to work using MVC based Razor templates e.g.
But they work ok in an .aspx template.
Are Razor .cshtml templates supported for Unsubscribe links.