Set Received Outlook programmatically

Viacheslav Marchenko 1 Reputation point
2020-04-08T08:20:33.897+00:00

I want to set MAPI property PR_RECEIVED_BY_EMAIL_ADDRESS_W in my code. There is in the manual specified, that this property "Set by transport providers on incoming messages". But I'm trying myMail.PropertyAccessor.SetProperty("http://schemas.microsoft.com/mapi/proptag/0x0076001F", "my@tiedtlaw email "); and output error {"The property \"http://schemas.microsoft.com/mapi/proptag/0x0076001F\" does not support this operation."}. This is happening from all types items - MailItem, PostItem, MeetingItem...
I tried to set alterrnative property PR_RECEIVED_BY_EMAIL_ADDRESS ("http://schemas.microsoft.com/mapi/proptag/0x0076001E"), but I have same problem.
How I can set it?
Thanks

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
23,798 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dave Patrick 329.4K Reputation points Microsoft MVP
    2020-04-08T11:15:37.66+00:00

    QnA currently supports the products listed in right-hand pane (more to be added) Better to reach out to subject matter experts in dedicated forums over here.

    https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=outlookdev

    (please don't forget to mark helpful replies as answer)

    No comments