How to change message format while forwarding a mail

  • Thread starter Thread starter html to rft
  • Start date Start date
H

html to rft

I have managed a migration from Lotus Notes to Exchange 2007 sp1.
After migration all mails are in HTML format. But i need to convert message
body type to RTF automatically before forward an old mail.
 
You can handle the item when it's opened or when it's forwarded and then
change the format of the item. You would use the MailItem.BodyFormat
property and set that property to olformatRichText.

You would either handle the Inspectors.NewInspector() event to trap items
opening, or you can handle the Explorer.Selection collection and the
Explorer.SelectionChange() event to grab all selected items and then set up
Forward() event handlers on each selected item.

You can find code samples for that sort of thing at www.outlookcode.com.
 
Back
Top