Hi,
I have recently worked over HTML Email body modification using Exchange Transport Agent SDK successfully,
http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/thread/0e10bdcf-2f3c-44ec-8755-c71e118a029e
but was unable to find a way to modify Text Email body ( emails sent in Text format).
The very first Exchange API method, which gets internal stream of Exchange Email Body, was failing. Because of that I don't see a way currently to convert a Text email body with HTML.
//Get the body
myBody = e.MailItem.Message.Body;
//This is failing
Stream myBodyReadStream = myBody.GetContentReadStream();
There is a sample in Transport SDK, which converts Email body to one format to another. So would I have to first Convert Text Email body to HTML Email body, and then modify the body, as if I would be dealing with an HTML Email?
Is there not any method to modify Text email body using Exchange Transport SDK?
In this thread the last participant has also told about this problem:
http://social.technet.microsoft.com/Forums/nb-NO/exchangesvrdevelopment/thread/7a1dec76-014b-4989-aa52-2a3fc5676ece
Thanks in anticipation.
Regards, David Johnson