Skip to content

Breaking button when forwaring email to MSO #2320

@BrentEerlingenWork

Description

@BrentEerlingenWork

Describe the Bug

When forwarding an email that includes the component from react.email, Microsoft Outlook (MSO) sometimes displays a broken image symbol instead of rendering the button correctly. The button in the forwarded email is often not clickable as well.

This appears to be related to conditional comments in the underlying HTML (<!--[if mso]>) which may get altered or partially stripped during the forward action.

The issue does not occur in regular (non-forwarded) views and seems isolated to forwarded messages viewed in Outlook.

Which package is affected (leave empty if unsure)

@react-email/button

Link to the code that reproduces this issue

NA

To Reproduce

1.	Send the email to an Outlook client.
2.	Open the email in Outlook and use the “Forward” feature.
3.	Check the forwarded message preview or sent message in Outlook.

Expected Behavior

The button should retain its formatting and not display a broken image or icon. Conditional comments and padding should work as expected across forward actions in Microsoft Outlook.

What's your node version? (if relevant)

No response

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions