Converting Mails to plain text - exchange server 2010

Hello Folks,

I have implemented a transport agent to convert all the HTML messages to plain text, the transport agent works fine with all external messages, where i convert the body and change the content type through the MIME part.

but with the internal messages its not working fine, i do the conversion for the body but when i receive the mail it is only the text all together like one paragraph without the basic formatting at least the new lines.

i think this is related for not changing the content type in the Message format -(TNEF format), but is it possible to change the content type in the TNEF format? i couldn't find any example about this! there is the TNEF readers and writers but without a helpful example!

there is no MIME Part in the internal messages, just TNEF part. i don't know if it is possible to to convert the TNEF to MIME and do the conversion there? or is there a way to fix how the body will looks like with the basic formatting - maybe changing the content type in TNEF format or in a layer that i don't need to work with the TNEF and MIME formats?

I tried to change in the MIME document direct but i am always getting a null reference on the relay function after the execution of the transport agent!

so if there is another approaches that i need to check it, please advise?

Thanks in advance,

Jamil Isayyed

April 30th, 2015 9:32am

Hi Jamil,

Below would be an alternative:

  1. Use GPO to enforce Outlook to use plain text for e-mail messages
  2. For OWA use cmdlet Set-MailboxMessageConfiguration
Set-MailboxMessageConfiguration kai@contoso.com -DefaultFormat PlainText

References:

Use Group Policy to enforce Office 2010 settings

Free Windows Admin Tool Kit Click here and download it now
May 5th, 2015 5:35am

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

Other recent topics Other recent topics