David Klempfner
David Klempfner

Reputation: 9940

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?

Upvotes: 1

Views: 531

Answers (1)

Dmitry Streblechenko
Dmitry Streblechenko

Reputation: 66316

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.

Upvotes: 1

Related Questions