Skip to content

Emails rejected with "552 5.2.0 Message contains bare CR" #1776

Answered by jstedfast
MarkDynna asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@MarkDynna
Comment options

@MarkDynna
Comment options

@MarkDynna
Comment options

@jstedfast
Comment options

Answer selected by MarkDynna
@MarkDynna
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants