Outlook MailItem Question

S

Scott McBurney

Is there any MAPI property, or an easy way to determine if an email message
is one that the current user sent, or that the user received? My addin
really needs to know the difference between a sent message, a received
message, and an unsent message. Unsent is easy, since there is a .Sent
property on the message, but that doesnt differentiate between a message that
I sent, and a message that someone sent to me.
 
F

falcon1977

I have something similar, but, Is there a way to flag a saved message as sent
without actually sending it? Our plug in saves a copy of a message then sends
it. The copy when opened later shows as not being sent. This is going confuse
our customers. They will think they didn't actually send the message. Any
help or direction is greatly appreciated.

Ken Slovak - said:
How about item.SenderName and item.SenderEmailAddress?
 
K

Ken Slovak - [MVP - Outlook]

Once an item has been saved the properties that make it "sent" are
read-only. Those properties are also not accessible using the Outlook object
model, except in Outlook 2007. What you'd need to do is create an item as a
Post item, set the sent properties and then convert the item to a mail item,
save it and then move it to Sent Items.

Why not actually send and then copy the sent item? That's a much better
architecture.
 

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