|
-
Feb 7th, 2002, 05:47 PM
#1
Thread Starter
Lively Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|