All,
I have some code that is executed when a "New E-mail" arrives. When
executing this code on several different machines I get either the New
Message or the Last Message. All machines are running same version of
Outlook 2003 SP1.
On one machine Visual Studio .Net is installed. On this machine I get the
last message when issuing the
molMi = molmfib.Items(1) instead of the New Message.
On the other machine I get the "New Message"...
Any explainationtions?
Here is what I am using to get the mail...
Dim molns As Outlook.NameSpace
Dim molmfib As Outlook.MAPIFolder
Dim molMi As Outlook.MailItem
Dim i As Integer
molns = m_Olapp.GetNamespace("MAPI")
molmfib =
molns.GetDefaultFolder(Outlook.OlDefaultFolders.ol FolderInbox)
Visual Studio .Net PC
i = molmfib.Items.Count
molMi = molmfib.Items(i)
sSubTemp = molMi.Subject
'Other Machine Code to get New Message
molMi = molmfib.Items(1)
Thanks,
Rog