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

Maximum line length exceeded (see RFC 5322 2.1.1) #1152

Open
siccovansas opened this issue Jan 30, 2024 · 0 comments
Open

Maximum line length exceeded (see RFC 5322 2.1.1) #1152

siccovansas opened this issue Jan 30, 2024 · 0 comments

Comments

@siccovansas
Copy link

How can we reproduce this bug?
Create an email template with at least 1000 characters using the Sass version of Foundation for Emails. The resulting .html file in the dist folder will now contain only 1 line with more than 1000 characters. This violates RFC 5322 2.1.1. Some email providers accept emails with more than 1000 characters (e.g. Gmail), but others don't and reject the email (e.g. YourHosting).

What did you expect to happen?
Emails generated by the Sass version of Foundation for Emails should conform to RFC 5322 so there are no deliverability issues.

Suggested fix
One way to fix this is to edit gulpfile.babel.js and change collapseWhitespace from true to false. A more robust fix is needed though as this change won't guarantee a line length of at most 1000 characters.

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

No branches or pull requests

1 participant