Thread
:
Getting from field value
View Single Post
#
2
April 26th 06, 10:35 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
Posts: 5,848
Getting from field value
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.
--
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
"Jani Lehti" Jani
wrote in message
news
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]
View Public Profile
View message headers
Find all posts by Ken Slovak - [MVP - Outlook]
Find all threads started by Ken Slovak - [MVP - Outlook]
Ads