I want to read a specific mail (arriving every day) from my Inbox.
This mail is uniquely identifiable by for example sender.
Also, I have this mail item open.
How can I read a specific mail? Preferably the one I have open.
Thanks to another poster, I have this:
I would like to specify a specific mail, and then read it's contents.
This mail is uniquely identifiable by for example sender.
Also, I have this mail item open.
How can I read a specific mail? Preferably the one I have open.
Thanks to another poster, I have this:
Code:
Dim thisApp As Object, thisNameSpace As Object, thisFolder As Object, theseItems As Object, mailBody As Object
Set thisApp = GetObject("","Outlook.Application")
Set thisNameSpace = thisApp.GetNamespace("MAPI")
Set thisFolder = thisNameSpace.Folders("Mailbox - Lastname, Firstname")
Set theseItems = thisFolder.Folders("Inbox").Items(4) <-- this is an example, which brings a correct mail from some days ago
Msgbox "Item: "+Str$(theseItems)
I would like to specify a specific mail, and then read it's contents.