Creation new message in Inbox folder

  • Thread starter Thread starter AlexD
  • Start date Start date
A

AlexD

Greetings,

I'm writing a program for synchronization messages from external database to
MS Outlook.
And I got some problems:
1. I don't know how I can avoid the message on the top of mine "This message
has not been sent."
2. Even when I set the property "PR_MESSAGE_DELIVERY_TIME" I see the time
when I created message but not the time I wanted (two days earlier)

Thanks,
Alex.
 
You can't create an email item in Sent state. If you are using a MAPI
wrapper such as Redemption or using Extended MAPI you can create a Post item
and set its Sent state and then save it and then convert the MessageClass
from "IPM.Post" to "IPM.Note". That will get rid of the unsent state, but
that must be done before the item is first saved. After that the property is
read-only.

Unless you mess with your system clock you cannot create an item with a
created date some time in the past.
 
Back
Top