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

Loading last updated info...

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: 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: Figure: Good example - Using absolute paths for both link and image on a newsletter

Categories

Authors

Need help?

SSW Consulting has over 30 years of experience developing awesome software solutions.

We open source.Loving SSW Rules? Star us on GitHub. Star