Leonid Batkhan's SAS blog

Lenetek Blog

How to create beautiful HTML emails in MS Outlook

Ever wondered how people create those beautiful e-mails that popup in your Outlook mailbox every day? Emails that look like web pages. Emails that can be used for newsletters or marketing campaigns. You can do it too and it’s very easy to do. You would just need to know some HTML and have your beautiful images ready.

Inspecting the source code of an email in Outlook

You can start with looking at what and how others do. When you see an email in you Outlook’s Inbox that draw you attention you can easily inspect its "guts" – the source HTML code. In order to do this in Outlook 2013 (Microsoft Office 2013), open the email of your interest and click through Actions → Other Actions → View Source as shown in the following picture:

Lookup HTML code of MS Outlook email

The HTML source will open in a Notepad window as shown in this picture:

HTML source code of the MS Outlook email

Developing HTML code for emails

You can inspect that HTML code, explore, modify, and save it. You can also develop your own HTML code. Essentially, you develop HTML code for email the same way as you develop a webpage. There are, however, some rules for developing HTML pages for embedding them into Outlook email.

Outlook HTML rules

If you do not follow these rules, the inserted HTML code will not look right in the Outlook. So here are the rules:

  1. All links and images must use absolute URLs. Using relative URLs, something like <img src="images/myimage.jpg"> will not work, you have to use full URL like <img src="https://www.somedomain.com/images/myimage.jpg">.
  2. Do not use external CSS files for styles; use either embedded CSS that is placed in the <head> section of your HTML, or inline CSS. Avoid using background images in your CSS.
  3. Do not use Javascript in HTML as it only works in web browsers, not MS Outlook.
  4. Outlook supports most, but not all HTML tags and attributes, so be warned.

Embedding HTML into Outlook email

When your HTML webpage is ready, you can embed it into Outlook email by clicking New Email → Attach File:

Embedding HTML file into MS Outlook email

Then navigate to your HTML file, select the file (highlight it), and from the Insert drop-down box select Insert as Text:

Insert HTML file into MS Outlook email

Voila! - Outlook embeds your HTML file into the email body.

If you would like to delegate all or some of these steps - from creating images, compiling content or HTML, or conducting the whole e-mailing campaign - Lenetek will be happy to help.

Comments

  1. Eric Wilson
    Posted September 16, 2017 at 10:30 am

    Helpful insight.

  2. Gerard Rozing
    Posted January 25, 2023 at 7:44 am

    I am using MS Outlook. The information above was just what I was looking for. However, in my Outlook version (365 latest) insert as text is not available in the dialog. Do you have a suggestion? Gerard

    1. David Wright
      Posted May 31, 2023 at 4:48 am

      @Gerard Rozing - You will have to add it to the ribbon. Start a new email and then customise the ribbon. You need to choose 'Attach file' from 'HTML Emails' HTH - D

  3. Payal
    Posted October 4, 2023 at 6:12 am

    Hi, I am looking for way to embed HTML, and I am finding same process everywhere. However, I am following the exactly same steps, it isn't working for me. After the step "insert as text", the curser moves to next line and doesn't really show any HTML.

    1. Posted October 4, 2023 at 11:40 am

      Payal, see the comment by David Wright above.

  4. Diane
    Posted January 5, 2024 at 10:21 am

    Unfortunalety I cannot insert as text either. Tried to customise the ribbon with what I think you meant, though my customisation choices do not match word for word. Anyhow, this does not work for me. Latest version of outlook, written January 2024.

    1. Posted January 5, 2024 at 12:32 pm

      Diane, see the comment by David Wright above.

Post a comment

Your email is never published nor shared.

Lenetek blog - homeBlog Home

 

Featured Posts

Latest Posts

Older Posts