Find sent email

B

Bela Gocz

Hi everybody!!

My problem started when i tryed to find a sent email in VB with Outlook
2002. After it send the email, the EntryId of mail item is changed. So i
added an ItemProperty to my message to find it in Sent Items folder. But
I really don't know how to search a message after his ItemProperty

objEmail.ItemProperties.Add "myitem", olText
objEmail.ItemProperties.Item("myitem").Value = "uniqueID"

Set objSearch = Application.AdvancedSearch("'Sent Items'", "...")

Any idea how the DASL search string shoul look like?

Thank you a lot
 
M

Michael Bauer

Am Wed, 26 Apr 2006 07:43:08 -0700 schrieb Bela Gocz:

You could simply use the ItemAdd event of that folder.
 
M

Michael Bauer

Am Wed, 26 Apr 2006 12:42:41 -0700 schrieb Bela Gocz:

Either you can handle each sent mail or you stick on adding an userdefined
field and check in the event if the item has that field. So you don´t need
to search each time a mail is sent through all the (hundreds?) of sent
mails.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top