\r\n Replace not working while sending Emails using PhpMailer Library

danthegreat

New Member
I have been trying to send emails, using the PHP Mail Library and have been partially successful.
The only problem that I am facing is, when the Mail is received by the receiver, every new line is shown as \r\n .

I have tried this: $body = str_replace("\\r\\n", '\n', $body); but it shows a '\n' instead of a new line.

I have also tried this: $body = str_replace("\\r\\n", "\\n", $body); but it shows nothing but a blank space. No new lines still :(

Can someone help me on this?
 
Top