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

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?


November 8th, 2013 10:57pm

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...
Free Windows Admin Tool Kit Click here and download it now
November 13th, 2013 12:14pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics