none
EWS 1.2 and Exchange 2010 - Any way to keep CSS from getting mulched in Appointment body? RRS feed

  • Question

  • I'm working on a project that integrates with Exchange 2010 via the EWS Managed API 1.2. As part of this project, we create Appointments and send notifications. Pretty basic. The thing is, we have a body with some HTML in it. It's nothing elaborate, mostly just tables, fonts, padding, etc, but it uses a style tag in the header. Unfortunately, Exchange completely discards that style tag, which completely destroys the formatting. In experimenting, we've found that even using a style="..." inside the element tag itself isn't always reliable. Certain styles will be discarded, others will be changed, and sometimes they'll come through almost the way we created them.

    We've had to work with Outlook HTML formatting in the past and tailored the CSS header to work with it. Now it seems we have to work with an even more limited subset of CSS. Is there any way to keep Exchange from throwing out the styles? If not, is there at least documentation showing what CSS styles will work in Exchange and how?


    Friday, November 8, 2013 7:57 PM

All replies

  • Nothing? Is there at least documentation showing what Exchange will do with the CSS and what can be used without being removed or altered? It's going to be loads of fun dealing with this if we have to play guess and check...
    Wednesday, November 13, 2013 5:12 PM
  • I dont suppose you have had any luck with this? I too am having the same problem.
    Tuesday, November 19, 2013 8:52 AM
  • I dont suppose you have had any luck with this? I too am having the same problem.

    Not beyond some very meticulous inlining.
    Monday, December 2, 2013 8:01 PM