Search code examples
routesexchange-servertransport

Changing the body using an exchange transport agent not reflecting in the sent items


I have written an exchange transport agent routing agent on the onRoutedMessage event. And I'm changing the body in the transport agent to something else. The recipient is receiving the changes email body but it is not being reflected in the senders sent items.

Is it the valid behaviour or do I have to do something else to get it working?


Solution

  • work with this object, you'll have access to the massage body via the routing agent:

    messageEventArgs.MailItem.Message.Body