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