Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text/plain only emails are not rendered properly #9480

Open
jetliew opened this issue May 16, 2024 · 2 comments
Open

text/plain only emails are not rendered properly #9480

jetliew opened this issue May 16, 2024 · 2 comments
Assignees
Labels
Bug 🧄 feature/agent-ui Common issues in agent dashboard that cannot be attributed to a specific feature 🧜‍♀️ q2-2024-product-cleanup

Comments

@jetliew
Copy link

jetliew commented May 16, 2024

Describe the bug

Hi some of our messages in Chatwoot don't have paragraph spacing when received.

I've replicated the scenario, it's because when the email format is "Plain Text", there will no spacing when message received in Chatwoot. We have another platform but the arrived message has no issue.

Not sure it's a bug or it's intentional for that.
If it's the bug, is that possible to fix that?

To Reproduce

Since I'm using Microsoft email, here's the steps:

  1. On browser, New Mail > Message menu > Switch to Plain Text.
    image2

  2. Key in the text and put paragraph spacing, after that send the email.

  3. When received the email in Chatwoot, the message will not have spacing.
    image1

Expected behavior

The messages should have paragraph spacing instead of no spacing between paragraph.

Environment

Other [please specify in the description]

Cloud Provider

Other [please specify in the description]

Platform

Browser

Operating system

Windows 10 Home

Browser and version

v3.8.0

Docker (if applicable)

No response

Additional context

Platform: Self-Hosted
EML file as requested:
email message EML.zip

@jetliew jetliew added the Bug label May 16, 2024
Copy link

linear bot commented May 16, 2024

@pranavrajs
Copy link
Member

Screenshot 2024-05-21 at 4 36 23 PM

A quick fix here is to replace the content with relevant HTML tags as shown in the code change above. We need to investigate whether there is a best practice to render text/plain content properly.

@pranavrajs pranavrajs added 🧄 feature/agent-ui Common issues in agent dashboard that cannot be attributed to a specific feature and removed 🧄 feature/agent-ui Common issues in agent dashboard that cannot be attributed to a specific feature labels May 21, 2024
@pranavrajs pranavrajs self-assigned this May 21, 2024
@pranavrajs pranavrajs added the 🧄 feature/agent-ui Common issues in agent dashboard that cannot be attributed to a specific feature label May 21, 2024 — with Linear
@pranavrajs pranavrajs changed the title Message don't have spacing text/plain only emails are not rendered properly May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🧄 feature/agent-ui Common issues in agent dashboard that cannot be attributed to a specific feature 🧜‍♀️ q2-2024-product-cleanup
Projects
None yet
Development

No branches or pull requests

2 participants