Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating the Inbox in Outlook
Message
From
09/10/2002 04:19:49
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00708659
Message ID:
00709149
Views:
18
>Zlatin,
>
>Yes, I need it to be done programatically.
>
>What I cant understand is why oMsg=oSpaceGetDefaultFolder(6) does not point to the INBOX. In other words, when I go in to outlook, the message should be in the INBOX (not the outbox)
>
>GetDefaultFolder(4) .... should this not point to the Outbox ?
>
>When I use oSpaceGetDefaultFolder(6), the data seemingly goes to the outbox instaed of the inbox
>
>Regards,
>Gerard
>

Try this (tested under Outlook XP)
oApp=CreateObject('Outlook.application')
oSpace=oApp.GetNameSpace('MAPI')
oMess=oSpace.GetDefaultFolder(6)
oNew=oMess.Items.Add()
oNew.Subject='This is a line'
oNew.Save()
HTH
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Previous
Reply
Map
View

Click here to load this message in the networking platform