How to change the text or style of the unsubscription link (and "web version")?
The displayed text and appearance (color, size, style) of the unsubscription link and the "web version" link are entirely up to you: it is you who creates the link in your HTML code, with the wording and style you want. Simply insert the corresponding variable into the "href" attribute. At the time of sending, Mailpro only replaces the link's destination (the URL) — it never modifies the text or style you have defined.
The two available variables
- $WebVersion$ — displays the email in the browser (online version).
- $UnsubscriptionLink$ — allows the recipient to unsubscribe.
Changing the link text
Simply write the text of your choice between the "<a>" and "</a>" tags, and place the variable in the "href":
<a href="$UnsubscriptionLink$">I no longer wish to receive these emails</a>
<a href="$WebVersion$">View in browser</a>
Changing the link style
Add your own styles ("style" attribute or CSS class) exactly as you would for any link in your email:
<a href="$UnsubscriptionLink$" style="color:#888888; font-size:12px; text-decoration:underline;">Unsubscribe</a>
Important point: the variable must always be located in the "href" attribute of a link. If written alone in the text, it will not be replaced.
Is case sensitivity important?
No. Uppercase and lowercase do not matter: "$WebVersion$", "$webversion$" or "$WEBVERSION$" work identically. However, we recommend keeping the spelling from the examples above for clarity.
What happens if I don't add these variables?
If you do not insert any of these variables, Mailpro automatically adds an online version link at the top of the email and an unsubscription link at the bottom. The variables are therefore only used to choose the location, text, and style of these links yourself within your template.