>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!