-
We recently switched our application over to MailKit to send emails. Some of our clients are having their emails rejected from one particular email domain with the error "552 5.2.0 Message contains bare CR and is violating 822.bis section 2.3." Sometimes removing attachments from the emails works and sometimes it doesn't. We've implemented the library using VB code and are using the BodyBuilder class to build the message and add attachments. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
What version of MailKit? Can you get a protocol log? (zip the log file so that it preserves newline sequences). |
Beta Was this translation helpful? Give feedback.
Okay, this is a bug in your templates or your code. Those bare carriage returns are part of your text/html content.
MailKit will properly convert LF -> CRLF, but it will not convert CR -> CRLF (because no supported system uses bare CR's as a line ending).
UNIX/Linux/MacOS use bare LF's for line endings and Windows uses CRLF.