Inserting links to the alternative view in the Web browser (HTML mailings only)

Due to limited HTML and CSS support in some recipient email programs, your recipients might only be able to display HTML mailings in a very simple layout and with few multimedia elements.

By inserting a relevant link into your mailing, you can give recipients the option to switch directly from their email program to the alternative view in the Web browser.

Use the following link, for example:

Copy
<a href="[%application-url]/html_mail.jsp?params=[%online_params]">
    Go to Web page view
</a>

This link consists of the following commands:

Command

Description

[%application-url]

Command for inserting the Web address of the Inxmail Professional client, for example, https://login.inxmail.com/samplecompany

[%online_params]

Command that passes the online parameters encrypted.

Online Parameters The following parameters are online parameters:

  • ID of the recipient
  • Email address (URL encoded) of the recipient
  • Build mode (distinguishing feature used for test emails and actually sent mailings, among other things)
  • Mailref (an encoding of the mailing ID, transmission ID and list ID)

The online parameters are required when the link to the alternative Web view is called or for the personalisation of dynamic Web pages (JSP), among other things.

[%online_params_unencrypted]

Command that passes the online parameters in plain text.

Online Parameters The following parameters are online parameters:

  • ID of the recipient
  • Email address (URL encoded) of the recipient
  • Build mode (distinguishing feature used for test emails and actually sent mailings, among other things)
  • Mailref (an encoding of the mailing ID, transmission ID and list ID)

The online parameters are required when the link to the alternative Web view is called or for the personalisation of dynamic Web pages (JSP), among other things.

Note: Please observe the provisions of the GDPR when transferring personalised parameters in plain text.

Determining the display environment

You can use the InInboxView and InAlternativeView functions to determine the display environment in which a mailing is currently being displayed.

  • The InInboxView function determines whether a mailing is displayed in the inbox view in the email program.
  • The InAlternativeView function determines whether a mailing is displayed in the alternative view in the Web browser.

These functions allow you to only display the link to the alternative view in the Web browser if the mailing is displayed in an email program.

Example 1

The link to the alternative view in the Web browser should only be displayed in your mailing when the recipient has opened the mailing in the email program. Once the recipient has opened the alternative view in the Web browser, the link should no longer be displayed.

For this, insert the following link:

Copy
[%if InInboxView()]
<a href="[%application-url]/html_mail.jsp?params=[%online_params]">
    No images visible or problems with display? Go to Web page view        
</a>[%endif]

To track the link to the alternative view in the web browser (i.e. to count how often the alternative link has been clicked on), you must specified the URL with the 'unique-count' link type instead of [%application-url].

Example 2

GDPR The GDPR (General Data Protection Regulation) will come into effect on 25 May 2018 and immediately require you to obtain declarations of consent for the use of personal data. You can find more detailed information on our website.

You can also track the link to the alternative view in the Web browser:

Copy
[%if InInboxView()]
<a href="[%url:unique-count; "https://web.inxmail.com/samplecompany/html_mail.jsp"]&amp;params=[%online_params]">
No images visible or problems with display? Go to Web page view
</a>[%endif]

Note:In the Inxmail Advanced Template and Inxmail Comfort Template, you do not need to manually enter the code for the link to the alternative view in the Web browser. Here, it is integrated in the main element Header > Browser link (The main elements of the Advanced Template).

Related topics