Corrupted email headers when DisplayName contains new line #128636
Copy link
Copy link
Closed
Description
Activity
- addeduntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
on May 27, 2026 dotnet-policy-service commented
on May 27, 2026 ContributorMore actionsTagging subscribers to this area: @karelz, @dotnet/ncl
See info in area-owners.md if you want to be subscribed.- removeduntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
on Jun 2, 2026 - linked a pull request that will close this issuePrevent corrupted SMTP headers when MailAddress.DisplayName contains CR/LF #128980
on Jun 4, 2026 - locked and limited conversation to collaborators
on Sep 14, 2026
When email address display name contains new line (for example, at the end of the string as a consequence of some parsing), SmtpClient do not trim such new line(s) and attempt to send email with corrupted headers.