Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / April 2006

Tip: Looking for answers? Try searching our database.

Getting from field value

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jani Lehti - 26 Apr 2006 20:57 GMT
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!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.