Download Email via Outlook
Hi
Could anyone tell me when I use the following code on winnt with Outlook 97, the system displays the outlook logon dialog box and then shows me the dialog box 'delivering new messages' but when I use the exact same code on a win2k system with outlook 98 it doesn`t download any new messages, it only goes as far as the inbox??? It doesn`t even attempt to download any new messages!
'Download Mail
mpsSession.DownLoadMail = True
mpsSession.LogonUI = True
mpsSession.SignOn
mpmMessages.SessionID = mpsSession.SessionID
mpmMessages.FetchSorted = False
mpmMessages.FetchUnreadOnly = False
mpmMessages.Fetch
'Save Message
Set ol = New outlook.Application
Set ns = ol.GetNamespace("mapi")
Set ofolder = ns.GetDefaultFolder(olFolderInbox)
Any help would be appreciated,
Thanks
Kelly