Fixed #23063 -- Convert \n and \r to \r\n when using the SMTP backend as...

... per RFC.
It could be useful to reference the associated ticket number in a comment/docstring here.