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

Line length limits for email attachments #39

Open
rsmolkin opened this issue Feb 16, 2018 · 0 comments
Open

Line length limits for email attachments #39

rsmolkin opened this issue Feb 16, 2018 · 0 comments

Comments

@rsmolkin
Copy link

Hi,

We are getting some bounced emails with the following code:
"smtp; 552 message line is too long"

We use AWS SES service with sendRawEmail, and the email messages have attachments.

I've been going over the structure that builds the raw message for days now, and have added a bunch of new line characters to ensure that no line is longer than 78 characters.

The only potential issue that remains is the actual content of the attachments which is encoded as base64. It doesn't seem that those lines are getting wrapped under 78 or 996 max length character limit. I'm not sure if the actual attachment content also needs to follow that rule, and if it does, how to actually accomplish that, cause introducing new line characters would probably break the actual attachment.

Any suggestions?

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