HTML - Do you use absolute paths for newsletter links and images?

Last updated by Tiago Araújo [SSW] over 1 year ago.See history

Newsletters should always use absolute references to all links and images within the HTML. Relative paths don't contain the server information so external users see a broken link/image - the outside email application won't find the where the file is.

<a href="/ssw/Company/ContactUs.aspx "><img src="/SSW/images/SSWLogo.png" /></a>

Figure: Bad example - Using relative paths for both link and image on a newsletter

<a href="https://ssw.com.au/ssw/Company/ContactUs.aspx "
  ><img src="https://ssw.com.au/SSW/images/SSWLogo.png"
/></a>

Figure: Good example - Using absolute paths for both link and image on a newsletter

Tiago Araujo
We open source. Powered by GitHub