How to get the EntryID for an email in the Sent Items folder?

B

Bingo

Before a MailItem is sent out, it's saved first. Once
the MailItem is sent out, a copy is created in the Sent
Items folder. How to get the entry ID of this copy?
Thanks.
 
G

Guest

You'd have to search for it; there's no automated way of retrieving it:

Set objItems = objSentItems.Items.Restrict("[Subject] = 'Subject line text'")
If objItems.Count <> 0 Then
Debug.Print objItems.Item(1).EntryID
End If
 

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