According to RFC 2047 an encoded word cannot be longer than 76 characters (including everything). So a longer subject line should be split and encoded into multiple encoded words.
Using the library mgs.setSubject('x'.repeat(100)) results in a single standard breaking encoded word. This leads to some Mail-Servers rejecting this message with an error.
The encoding should split and wrap longer encoded words to match the standard.
According to RFC 2047 an encoded word cannot be longer than 76 characters (including everything). So a longer subject line should be split and encoded into multiple encoded words.
Using the library
mgs.setSubject('x'.repeat(100))results in a single standard breaking encoded word. This leads to some Mail-Servers rejecting this message with an error.The encoding should split and wrap longer encoded words to match the standard.