-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Mime] QpContentEncoder
removes intentional line break
#49295
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
Comments
If i remove this line: |
https://www.freesoft.org/CIE/RFC/1521/6.htm says
So I guess generally that preg_replace seems correct? |
The implementation in swiftmailer looked a bit different: https://github.com/swiftmailer/swiftmailer/blob/master/lib/classes/Swift/Encoder/QpEncoder.php#L279 |
Hmm, that's strange. |
QpContentEncoder
removes intentional line break
Hey, thanks for your report! |
Symfony version(s) affected
6.2.5
Description
[symfony/mime] QpContentEncoder removes intentional line break
Under certain conditions Symfony\Component\Mime\Encoder\QpContentEncoder seems to remove an intentional line break in the rendered email body.
When i set the the body text via Symfony\Component\Mime\Email::text() with the following value:
i receive the follwing rendered email body:
The raw quoted printable text will be:
I would expect that the line break here is rendered as it was placed in the Email::text() argument.
Thanks for your support
How to reproduce
To reproduce the issue i prepared a setup with mailhog:
https://github.com/fforsthuber/sf-mailer-line-break-problem
See README for setup
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: