Skip to content

Line length is too long in emails #24531

@philippeaellig

Description

@philippeaellig

Preconditions (*)

Magento 2.2.8 in production mode. Use production mode to reproduce this bug, because only in this case, less code will compiled and minimized to one line.

Steps to reproduce (*)

Send an email with the default magento header.
vendor/magento/module-email/view/frontend/email/header.html
Have a look at the source code of the mail.
The line with the rendered css from css/email.css is too long, in my case 5611 octets. this is too long. allowed are max. 998 characters for one line. some mails will not reach the reciver, because some mailservers do not accept mails with long lines.

Expected result (*)

  1. minimizes css, but not in one line. no line longer than 998 characters.

Actual result (*)

  1. one line, 5611 characters.

I think, this issue is about the same topic. https://github.com/mageplaza/magento-2-smtp/issues/156 (another magento extension, but this is not a mageplaza bug...)

Metadata

Metadata

Assignees

Labels

Issue: Format is validGate 1 Passed. Automatic verification of issue format passed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions