Help!

Creation new message in Inbox folder

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Programming VBA RSS
Next:  To Calculate the qty b/w two dates  
Author Message
AlexD
External


Since: May 12, 2009
Posts: 3



PostPosted: Tue May 12, 2009 5:23 am    Post subject: Creation new message in Inbox folder
Archived from groups: microsoft>public>outlook>program_vba (more info?)

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.
Back to top
AlexD
External


Since: May 12, 2009
Posts: 3



PostPosted: Tue May 12, 2009 7:16 am    Post subject: RE: Creation new message in Inbox folder [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks a lot.
Back to top
Ken Slovak - [MVP - Outlo
External


Since: Oct 17, 2003
Posts: 3355



PostPosted: Tue May 12, 2009 10:03 am    Post subject: Re: Creation new message in Inbox folder [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"AlexD" <AlexD RemoveThis @discussions.microsoft.com> wrote in message
news:E3863A65-B21E-44F8-BEAE-9025F517477E@microsoft.com...
> 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.
Back to top
AlexD
External


Since: May 12, 2009
Posts: 3



PostPosted: Tue May 12, 2009 10:03 am    Post subject: Re: Creation new message in Inbox folder [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks a lot.
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Programming VBA All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum