View Single Post
  #3  
Old April 26th 06, 10:45 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Getting from field value

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

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Jani Lehti" wrote:

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!

Ads