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

  • Thread starter Thread starter Bingo
  • Start date Start date
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.
 
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
 
Back
Top