Emails sent via Office.js add-in not rendering correctly in inbox

Emil Karapetyan 0 Reputation points
2025-05-05T11:59:13.8733333+00:00

Hi everyone,

I’ve developed a custom Outlook add-in using OfficeJS and I’m encountering an issue related to rendering HTML content inserted into the message body via the setSignatureAsync method.

The problem specifically occurs **when a message is composed in the New Outlook experience and then received in Old Outlook. In this case, the HTML content does not render correctly in the recipient's view.

Here are the scenarios I've tested:

Old Outlook → New Outlook: The email renders correctly.

New Outlook → New Outlook: The email renders correctly.

Old Outlook → Old Outlook: The email renders correctly.

New Outlook → Old Outlook: The email renders incorrectly (HTML formatting issues).
9a3f51c6-66eb-4c5f-b7b4-3e1bbfccfec8

05dfeaf3-a765-4c31-b6c8-a27eea355c4f

96d570db-55b4-4f42-b5ec-1e3eac507526

Has anyone encountered a similar issue or found a workaround for consistent rendering between Outlook versions? Any insights or guidance would be greatly appreciated.

Thank you!

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,062 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.