I created an outlook addin with a ribbon. I use the ribbon type "Microsoft.Outlook.Mail.Re
I put a button with the name "cmdCustomerFile" on the ribbon:
Private Sub cmdCustomerFile_Click(sender As System.Object, e As Microsoft.Office.Tools.Ribbon.RibbonControlEventArgs) Handles cmdCustomerFile.Click
The ribbon appers on evey open mail. I would like to read some information out of the mail if I click my button. How can I get the mailitem for my actual mail in the click function?