Expand my Community achievements bar.

SOLVED

View email on web

Avatar

Level 1

Can we code different content for view email on web. 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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.

 

https://experienceleague.adobe.com/docs/campaign-classic/using/designing-content/editing-html-conten...

 

Regards,

Pravallika.

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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.

 

https://experienceleague.adobe.com/docs/campaign-classic/using/designing-content/editing-html-conten...

 

Regards,

Pravallika.

Avatar

Community Advisor

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