How to get Outlook mail body text using active window search in VB2005 express

Hi,

How can I get Outlook mail body text into a string using active window code in VB2005 express. I can already check what the active window caption is but I don't where to start in trying to get the body text of the open email.

I'm looking into Microsoft.Office.Interop.Outlook, am I on the right track

Any help would be appreciated.
Kim




Answer this question

How to get Outlook mail body text using active window search in VB2005 express

  • ted944

    kimhoskin,

    It depends on your project. If you are developing with the Office, the Microsoft.Office.Interop.Outlook will be fine. Just pay more attention there are several methods of this namespace, such as Application, Explorer, Inspector, MAPIFolder, MailItem.

    However, when you develop your project with System namespace, the track will be System.Web.Mail in .NET 1.1 and System.Net namespace with the following methods: SmtpClient, MailMessage.

    Please choose the right track you are looking up.



  • How to get Outlook mail body text using active window search in VB2005 express