MailItem.SenderEmailAddress Property
Outlook Developer Reference |
Returns a String that represents the e-mail address of the sender of the Outlook item. Read-only.
Syntax
expression.SenderEmailAddress
expression A variable that represents a MailItem object.
Remarks
This property corresponds to the MAPI property PR_SENDER_EMAIL_ADDRESS.
Example
The following Microsoft Visual Basic for Applications (VBA) example loops all items in a folder named Test in the Inbox and sets the yellow flag on items sent by 'someone@example.com'. To run this example without errors, make sure the Test folder exists in the default Inbox folder and replace 'someone@example.com' with a valid sender e-mail address in the Test folder.
Visual Basic for Applications |
---|
|
See Also