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!
Ken Slovak - [MVP - Outlook] - 26 Apr 2006 21:35 GMT
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.

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
> Is there a way I can get the From field value, when I send the email?
>
[quoted text clipped - 9 lines]
>
> Thanks!
Eric Legault [MVP - Outlook] - 26 Apr 2006 21:45 GMT
The sending process is not finished until after that event completes. You'll
be better off choosing which account to use first with code, if your process
can accomodate such an action. See this for more info:
TIP: Fun with Outlook CommandBars:
http://www.outlookcode.com/d/tips/commandbarfun.htm

Signature
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/
> Is there a way I can get the From field value, when I send the email?
>
[quoted text clipped - 7 lines]
>
> Thanks!