Resolving Common Link Errors in Email

November 24, 2017

This guide addresses common issues with links in emails to help you resolve link errors.

Redirection

Problem

The endpoint of a link does not work.

Solution

Make sure you use the proper link format. Use an absolute link, instead of a relative link.

<!-- Correct -->
<a href="http://www.example.com/index.html">Homepage</a>

<!-- Incorrect -->
<a href="/index.html">Homepage</a>

Problem

Outlook uses different code for links in emails, and the code is placed into an "if" condition. These "if" conditions are built as Microsoft-specific HTML comments and will not render in any other email client but Microsoft Outlook.

Solution

Check the Microsoft Outlook link is referencing the correct destination and fill in the correct URL in the reference.

In the example below, the href is href="http://".

<!-- Incorrect -->
<!--[if mso]>
  <v:rect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="http://" style="height:45px;v-text-anchor:middle;width:180px;" stroke="f" fillcolor="#f5774e">
  <w:anchorlock/>
  <center>
<![endif]-->

<!-- Correct -->
<!--[if mso]>
  <v:rect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="http://www.dyspatch.io" style="height:45px;v-text-anchor:middle;width:180px;" stroke="f" fillcolor="#f5774e">
  <w:anchorlock/>
  <center>
<![endif]-->

Problem

Sometimes buttons don't work across all email clients. When testing to see if a button works, make sure to try viewing your email in a Microsoft Outlook account as well.

Solution

If you are experiencing errors with links in buttons try using Buttons.cm, it helps you create a button that works for all email clients.

Didn't find what you're looking for?

Ask our support team, we're here to help!

Contact Support