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

Use "text/html" content type instead of "multipart/alternative" #230

Open
aiboost opened this issue Feb 17, 2023 · 7 comments · May be fixed by #235
Open

Use "text/html" content type instead of "multipart/alternative" #230

aiboost opened this issue Feb 17, 2023 · 7 comments · May be fixed by #235

Comments

@aiboost
Copy link

aiboost commented Feb 17, 2023

Feature Request

Use "text/html" content type instead of "multipart/alternative" [in some cases].

Q A
New Feature yes
RFC yes
BC Break no

Summary

Currently Laminos Mail sends all messages in "multipart/alternative" format that makes them not readable by some e-mail clients.
A quote from mail source:

Content-Type: multipart/alternative;
...
This is a message in Mime Format.  If you see this, your mail reader does not support this format.

But some products do not need to send mails with a complicated structure, they need just to send text or HTML messages.
Here is the issue description on osTicket forum (they use LM lib): https://forum.osticket.com/d/102563-ya-this-is-a-message-in-mime-format/18

It could be nice if LM uses "text/html" content type as all other SMTP clients do. Maybe not mandatory, but using some option.

@Ocramius
Copy link
Member

Briefly looked at the thread over there, and somebody described it as a regression? Could you pinpoint where/when the regression has happened?

@Ocramius Ocramius added Awaiting Author Updates Bug Something isn't working labels Feb 17, 2023
@aiboost
Copy link
Author

aiboost commented Feb 17, 2023

@Ocramius probably this is not a regression. osTicket just started to use LM in June 2022 (they had something totally another before), so some of the users just updated, and some - just installed osTicket from the scratch.

I'm one of those who try to install osTicket, but I just worry that some of the clients will be unable to read e-mail. uvDesk (alternative to osTicket) uses SwiftMail and does not have such issue.

My worry is about some clients won't be able to render non-text/html format in their [probably legacy] e-mail clients. I've read about such stories in the internet, for example here is a complaint about multipart/alternative format can not be rendered in Outlook 2010: https://stackoverflow.com/questions/31502596/php-mail-multipart-mixed-cut-off-outlook-2010.

You know, the problem looks like not too important when some accounter on old PC can not get e-mail, but this is not such fun when this accounter is your accounter :)

Now on the way to understanding how big is the problem...

@Ocramius
Copy link
Member

I would expect a reproducer here before acting then: everything else is just words until then :)

@cloudseeder
Copy link

I spent a couple of days working on this. It does turn out to be a bug in laminas\mail\transport\sendmail. Everything is documented in this osTicket bug:

osTicket/osTicket#6305

Let me know if you need more.

@Neustradamus
Copy link

To follow

@Ocramius Ocramius linked a pull request May 22, 2023 that will close this issue
@RubyRachel

This comment was marked as off-topic.

@froschdesign

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants