Can we code different content for view email on web.
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @rasiksj0311 ,
Yes, you can configure a different content for the View email in web Browser also. For that you need to create a landing page for the Content which you want to configure for "View in Browser" and then use it in the Mirror Page Url Code as shown below, instead of using the OOTB Personalization Block for Mirror Page.
<% if ( document.mode != 'mirror' && document.mode != 'forward' ) { %><p align=center>
<font style="font-family: Verdana, Arial; font-size: 10px">
If you are unable to view this message correctly,
<a href="https://{instance Url to Connect}/webApp/{InternalName}" _label="Mirror Page" _type="mirrorPage">click here</a>
</font>
</p><% } %>
Also, Please find the reference link on how to create the Landing Pages.
Regards,
Pravallika.
Views
Replies
Total Likes
Hi @rasiksj0311 ,
Yes, you can configure a different content for the View email in web Browser also. For that you need to create a landing page for the Content which you want to configure for "View in Browser" and then use it in the Mirror Page Url Code as shown below, instead of using the OOTB Personalization Block for Mirror Page.
<% if ( document.mode != 'mirror' && document.mode != 'forward' ) { %><p align=center>
<font style="font-family: Verdana, Arial; font-size: 10px">
If you are unable to view this message correctly,
<a href="https://{instance Url to Connect}/webApp/{InternalName}" _label="Mirror Page" _type="mirrorPage">click here</a>
</font>
</p><% } %>
Also, Please find the reference link on how to create the Landing Pages.
Regards,
Pravallika.
Views
Replies
Total Likes
Hi @rasiksj0311 ,
If you add out of box mirror page personalization block by adding <%@ include view='MirrorPage' %> in HTML, In email body, it will render us below,
If you are unable to view this message correctly, click here
Instead of above default text content for mirror page, if you want to display other text like 'View email on web', then you can add below syntax in your HTML template.
<a href="<%@ include view='MirrorPageUrl' %>" _label="Mirror Page" _type="mirrorPage">View email on web</a>
Now in the email body, the above syntax will render us,
View email on web
Views
Replies
Total Likes
Views
Likes
Replies