Search code examples
asp.netoutlookoutlook-2007inline-code

Email format not supported in MS Outlook 2007


I am creating the email format from my code-behind. In that I am using the <div> tags and also the <a> tags. and for them i am applying the style background:url property. Using this way I am getting the emails with images and style. It works proper in the Thunderbird but not in MS Outlook 2007. It prevents the inline images form render.

Is there any other way that I can insert the images inline.

thanks in advance.


Solution

  • Most email clients like Outlook does not render divs properly try to do as following

    1. Do not use Divs.
    2. Only use tables and use fixed width in pixels on each table cell etc.
    3. Only use inline styling.
    4. Make sure your images are accessible. like www.mywebsite.com/image1.gif so that outlook can download it.

    There are more but these are the basic things which needs to be addressed.