>>> \r\n should be between double quotes: "\r\n"

I think you'll still see the literal "<br>"s in your final email,
though because htmlspecialchars() is converting the angle-brackets in
the tag to their respective HTML entities ("&lt;" for "<" and "&gt;"
for ">").

A bit of a thorny problem because you probably do want to escape
HTML-characters in the message for security purposes. I suppose you
could call str_replace() after htmlspecialchars(), instead of before
it as you currently do.

OTOH, why not just send your email as plain text, instead of HTML?

Thanks,

Ben

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to