Outlook Add-in Problem - Cannot modify message body when email is read

  • Thread starter Thread starter Norman
  • Start date Start date
N

Norman

I am developing an Outlook 2003 Add-in using VB.net. I want to be
able to modify the body of an email message, WHEN it is being read.

Basically, when the user opens up a email message - the NewInspector
event fires in my Add-in, I get an Outlook.MailItem. On this
MailItem (let's assume its plain text), I do the following:
MailItem.Body = "Text"
MailItem.Save()

The net result is that the message body is NOT changed. If you close
the email, and re-open it.. then the change can be seen.

In other words, I need to refresh the body of the message so that
Outlook displays the new message body, and not the original message
body.

Any idea on how this can be done?
 
I have the same problem when the email message is in the plain text and I
want to convert it in RTF changed the body via MAPI.

Could anyone help me?
Thx
 
Back
Top