Hello,
My situation is that my company gets an email from another company with a link to a file that we need to download and then process. All that is done manually by my users. i've been tasked with creating a button in Outlook, such that it will read the email looking for a name of the client this needs to be processed for in the subject and also retreive the url in the email so that I can get the file from the web and process it. Now, barring any freaky permission issues, I know how to down load the file and process it. My problem is that i've never created an outlook addin before. i've done a bunch of searching on the web and have created one. I see the new ribbon on the opened email and even the button that I created. Now I need to be able to access the subject and body (accessing the From would help me in another project that I see coming down the pike and I'm hoping that how I access the subject and body would be the same methodology).
So, in my ribbon class, I have the following:
Imports Microsoft.Office.Tools.Ribbon
Public Class MyRibbon
Private Sub MyRibbon_Load(Byval sender as System.Object, ByVal e as RibbonUIEventArgs) handles MyBase.Load
End Sub
Private Sub btnProcText_Click(sender as System.Object, e as Microsoft.Office.Tools.Ribbon.RibbonControlEventArgs) Handles btnProcText.Click
What goes here to access the subject and body?
End Sub
End Class
This is all Framework 4.0 and preferrably VB.Net (and not COM) and Outlook 2010 on Windows 7.