Q:

Reply to an (open) outlook mail from an external program

In an external app I'd like to reply to an e-mail (Outlook is the email client). The email is already opened on the computer-screen. In the reply I would like to insert a reply generated in code from the external app. Instead of having the message to reply to an already opened email in a separate outlook-window, I could alternatively also search for the specific mail and then using code for replying.
Any ideas what to look for among the outlook objects? Any code-examples (vb.net or c#)?
I already know how to create a new e-mail in outlook from my external app through code but I am unsure how to reply to an existing email.

A:

Use Application.ActiveExplorer.CurrentItem to access the currently open message, then call MailItem.Reply to get the reply MailItem object, modify its message body (MailItem.Body), call MailItem.Display to show it to the user.

