Getting from field value

G

Guest

Is there a way I can get the From field value, when I send the email?

using the ItemSend when i send the email, i can check the to, subject etc.
using Item.To, Item.Subject etc. but I can't read the From value. I would
need to check if that's empty (like normally when sending from my mailbox) or
if it has something in it (normally when I send email from resource mailbox),
and based on which one, I run the code before it send the email.

Any way to check this?

Thanks!
 
K

Ken Slovak - [MVP - Outlook]

That's not filled in until the item is sent. It's filled in by the
transport. Before sending the only clues are undocumented properties you
have to read from the item using CDO 1.21 or Redemption or Extended MAPI
code. The Outlook object model won't help you with that.
 

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