
Originally Posted by
pmw57
It seems that the content of the email is being escaped incorrectly. The solution is not to remove them after the fact, but to work back to where the problem begins, and correctly deal with it there and then.
If $message contains "Line one.\r\nLine two." you won't see the \r\n. It's only when $message is escaped, either incorrectly or multiply, that you see the problem.
What does var_dump($message) show, and how far up through the code do you need to go before a change in $message occurs?
Bookmarks