Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

outlook email sent item EntryID, how to obtain?

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
GB
Hi,

I'm trying to store the EntryID of an email so I can retrieve the email at a later date.

However, it seems EntryID changes when an email is moved, so when I obtain the EntryID of the email , the email resides in 'Drafts', however, when the email is sent the EntryID is no longer valid as the email is moved to 'Sent Items'.

How do I get the EntryID of the sent email?

I've tried to get the EntryID after I issue the .Send command using
Code:
    'send email
    oMsg.Send
    
    ' update emailID
    sEmailID = oMsg.EntryID
but that errors saying the 'Item has been moved or deleted'.

So how do I track an email and keep it's unique ID from the drafts folder to the sent items so I can open it later?

Thanks,
1DMF



"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Free Dance Music Downloads
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top