Set Received Outlook programmatically

Viacheslav Marchenko 1 Reputation point

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("", "my@tiedtlaw email "); and output error {"The property \"\" 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 (""), but I have same problem.
How I can set it?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,987 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dave Patrick 426.3K Reputation points MVP

    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.

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

    0 comments No comments