Office add-in for Outlook - Sometimes the sender's email address becomes LegacyExchangeDN.

Kenta Hayashi 1 Reputation point
2021-01-15T02:22:21.93+00:00

Hello.

I am currently developing an Office add-in for Outlook.

When I use the following method to get the sender's email address, in rare cases, the emailAddress property becomes the value of LegacyExchangeDN instead of the email address.
office.from

The following is an example of an object when it becomes a LegacyExchangeDN (some parts are hidden).

{displayName: "XXXXXXXX", emailAddress:"/O=EXCHANGELABS/OU=EXCHANGE ADMINISTRATIVE GROUP (XXXXXXXXXXXXXXXX)/CN=RECIPIENTS/CN=XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX-XXXXXX"}  

We do not know the conditions under which this happens.

Can you please tell me the cause of this problem and how to solve it?

We're using Office 365(Microsoft 365).

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,684 questions
{count} votes