this.. nice.. exchange server converts my text/plain messages from text to html and messes them up, just because it detects html somewhere in the body.
how can i stop him from doing so?
edit: i am looking for a server side fix – this is affecting automatically generated emails from an application server. the messages are generated in java explicitly with
message.setContent("This is a <span>Test</span>", "text/plain");
like mundeep points out.
i think it does not matter, but the messages are retrieved via outlook directly or via exchange web access. (without pop/imap)
Best Answer
You don't mention how the messages are being retrieved, but I have seen this before with Exchange 2007 and IMAP retrieval (though I believe it affects POP3 as well).
Have a look at this Technet document, specifically the
ImapMessagesRetrievalMimeFormat
switch. The documentation is exceedingly vague, but Exchange can force the format of the messages as they are retrieved from the server, either by user (as the link indicates) or on the service itself; in which case you would use theSet-ImapSettings
command, and change the
MessageRetrievalMimeFormat
option.The current setting for the service on your host can either be seen using PowerShell using the following and looking for 'MessageRetrievalMimeFormat
':Alternatively you can use the GUI:
A similar thing can be done for individual mailboxes by getting the properties of the mailbox and looking at the 'Mailbox Features' tab.
I can't tell you what setting is correct for your situation (as the documentation is so vague), but my Exchange 2007 installation has the setting left on 'Best Body Format'.