'Get Sender's Email Address in Outlook Macro Without Using MailItem
The MailItem.SenderEmailAddress
and MailItem.To
fields are coming through as null unless I run Outlook at admin.
How can I get the sender's email address and the to email address without having to use MailItem
, or using MailItem
but without having to run Outlook as admin?
Solution 1:[1]
Based on the comments above (works for the intrinsic Application
object in VBA, but not if you create a new instance of the Outlook.Application
object), you are most likely running into the security patch or some weird AV app interaction. If you are using VBA, Redemption (I am its author) is probably your only option. Or figuring out what is going on with your AV app, or installing it if you don't have one installed.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |