View Single Post
  #6  
Old October 9th 07, 08:19 PM posted to microsoft.public.outlook.program_vba
Maurice
external usenet poster
 
Posts: 48
Default Retrieving sent items

Ken,

I'll rerun the code several times to double check. By head the code runs
well, sending the item and directly looping through the sent items folder to
check for the sent item. I'll post the code so you can take a look at it..

Thanks for the replies..
--
Maurice Ausum


"Ken Slovak - [MVP - Outlook]" wrote:

An item should always have EntryID after it's sent, I've never seen it not
have one. However, why not just save the item first and then send it. Of
course if it's an Exchange mailbox then EntryID would change when the item
is moved to Sent Items, in a PST file EntryID wouldn't change.

Are you positive that no EntryID is on the item right after it's sent and
moved to Sent Items? I'd run an ItemAdd handler on that folder to verify
that.

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


"Maurice" wrote in message
news
Hi ken,

My point exactly. It's for outlook 2003. I tried reading the EntryID but I
could obly get that when the item was actually sent. Strange thing is that
when I run the code
the message is immediatly set in the sent items folder but it doesn't have
an EntryID yet.

I tried sending a mail to myself. The mail was immediately in sent items.
I
went through sent items via VBA and it did recognize the mail as being
there
but it didn't have an EntryID until I received the mail. Strange, so
Outlook
must do some updating by itself when the mail is actually delivered
because
it looks like that's the moment when the EntryID is designated to the sent
item.

What would your advise be in this case, create an own unique key. If so
how
can I designated that to let's say a mail?

Thanks for the info so far...
--
Maurice Ausum



Ads