0
votes

I'm setting my user properties when I send a email. When I send it to a email outside of exchange (gmail or yahoo) and get a reply it losses it's properties. Any reason why?

Method 1: Set: m_RDOMail.Fields[ "http://schemas.microsoft.com/mapi/string/{00020386-0000-0000-C000-000000000046}/PropertyName"] = value;

Get: object userProperty = m_RDOMail.Fields[ "http://schemas.microsoft.com/mapi/string/{00020386-0000-0000-C000-000000000046}/PropertyName" ];

Method 2: SET: m_RDOMail.UserProperties.Add("PropertyName", rdoUserPropertyType.olText, true, rdoUserPropertyType.olText); m_RDOMail.UserProperties["PropertyName"].Value = value;

GET: RDOUserProperty userProperty = m_RDOMail.UserProperties["PropertyName"];

1

1 Answers

0
votes

Where does the property disappear? In the Inbox of the recipient? Outlook will not propagate custom MIME properties to named properties unless the mapping has already been done. But the MIME header will still be in PR_TRANSPORT_MESSAGE_HEADERS. Do you see it using OutlookSpy (click IMessage button)?