Hello community,
I have integrated the "View in Browser" functionality in my marketing mails.
The recipient can now view the mail in the browser if the mail is not displayed correctly. But the browser also shows the "View in Browser", which doesn't make any sense to me. The contact is already in his browser.
Is there a way to hide this text if the contact has already opened the email in the browser?
Thank you and regards
Ferdinand
Hi there Leah,
thanks for your quick answer. Maybe I thought about a small javascript, which will load when Browser is open and hide the Text fiel.
like this:
if (navigator.userAgent.indexOf("Outlook") > -1) {
// The user is using Outlook
} else {
// The user is not using Outlook
document.getElementById("WebbrowserLink").style.display = "none";
}
But in my mind, JS is not Loading in E-Mail but in Browser so maybe i only need the document.getElementById("WebbrowserLink").style.display = "none"; or is there anything I should mind?
Thanks
Best Regards
Ferdinand
Hi Ferdinand,
Unfortunately, you can't hide or show it based on email opening ways if you have added it to the email.
In Marketing emails, we can add advanced logical processing to email designs:
Conditional (if-then-else) statements display content depending on whether one or more conditional expressions resolve to true or false.
But we can't get email opening ways through it.
https://learn.microsoft.com/en-us/dynamics365/marketing/dynamic-email-content
André Arnaud de Cal...
292,160
Super User 2025 Season 1
Martin Dráb
230,962
Most Valuable Professional
nmaenpaa
101,156