Posted on 07/01/2014 13:49:58
Thanks for your Reply Mikkel.
Although, your solution does not work.
In Email Marketing, your point to a page, which is used to send as a newsletter. I have a very simple, MasterPage-, Page- and Paragraph Template for the newsletter(page).
Although, if i change from HTML to Razor, no values are displayed.
Take my page template, in Razor:
<!--@MasterPageFile(Nyhedsbrev_Master.cshtml)-->
<!--@Layout.Title(Nyhedsbrev - Standard)-->
<!--@Layout.Description(Template til standard nyhedsbrev)-->
Sidetemplate key: @GetValue("EmailMessaging:Recipient.Key") <br />
Sidetemplate Name: @GetValue("EmailMessaging:Recipient.Name") <br />
Sidetemplate Id: @GetValue("EmailMessaging:Recipient.Id") <br />
Sidetemplate Email: @GetValue("EmailMessaging:Recipient.Email") <br />
Sidetemplate DomainUrl: @GetValue("EmailMessaging:Message.DomainUrl")
<br />
<div class="dwcontent" id="indhold" title="indhold">
</div>
And here in Html:
<!--@MasterPageFile(Nyhedsbrev_Master.cshtml)-->
<!--@Layout.Title(Nyhedsbrev - Standard)-->
<!--@Layout.Description(Template til standard nyhedsbrev)-->
Recipient id: <!--@EmailMessaging:Recipient.Id--><br/>
Recipient email: <!--@EmailMessaging:Recipient.Email--><br/>
Recipient key: <!--@EmailMessaging:Recipient.Key--><br/>
Recipient name: <!--@EmailMessaging:Recipient.Name--><br/>
Message DomainUrl: <!--@EmailMessaging:Message.DomainUrl--><br />
<div class="dwcontent" id="indhold" title="indhold">
</div>
When i use the Html template, then the values of the templatetags are displayed in the email, but when using the razor template, then the values aren't displayed in the email.