Formatting for Outlook 2007

Last post 11-06-2009, 12:05 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  11-06-2009, 8:43 AM 56942

    Formatting for Outlook 2007

    We are using CuteEditor (.NET) for our emailing our users. However, we've noticed that the HTML templates do not format properly for Outlook 2007.
     
    I believe this is due to the <html><body> tags getting removed from the body of the message that is sent:
     

    Content-Type: text/html; charset=us-ascii
    Content-Transfer-Encoding: quoted-printable

    <div align=3D"center">=0D=0A<div style=3D"font-size: 10px; width: auto;=
     
    Which translates from this:
     
     
     
    To this:
     
     
     
    Is there a config setting to preserve these, or has anyone discovered a workaround? The formatting is perfect in Outlook Express, Mozilla, and webmail clients.
  •  11-06-2009, 12:05 PM 56945 in reply to 56942

    Re: Formatting for Outlook 2007

    If you want to perserve the html, body tags, you need to set the following property to true:
     

    Editor.EditCompleteDocument Property

    Specifies whether a complete HTML document is being edited.

    [Visual Basic]
    Public Property EditCompleteDocument As Boolean
    [C#]
    public bool EditCompleteDocument {get; set;}

     

    Remarks

    If false, the editor will only process content inside the page body i.e. all content inside of the <body>...</body> tags of a page. If true, the editor will process content outside the page body and preserve header tags (e.g. <head>...</head>, <title>...</title>, etc.).

     


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML