Re: [PHP] html email showing instead of line breaks

2009-09-24 Thread Ben Dunlap
>>> \r\n should be between double quotes: "\r\n" I think you'll still see the literal ""s in your final email, though because htmlspecialchars() is converting the angle-brackets in the tag to their respective HTML entities ("<" for "<" and ">" for ">"). A bit of a thorny problem because you proba

Re: [PHP] html email showing instead of line breaks

2009-09-24 Thread Fernando Castillo Aparicio
Have you tried http://es.php.net/manual/en/function.nl2br.php ? I think it's easier and fits your needs. De: Adam Williams Para: PHP General list Enviado: jueves, 24 de septiembre, 2009 20:52:13 Asunto: [PHP] html email showing instead of line brea

Re: [PHP] html email showing instead of line breaks

2009-09-24 Thread Jonathan Tapicer
Double quotes accept special characters and string interpolation, see the manual: http://php.net/manual/en/language.types.string.php On Thu, Sep 24, 2009 at 4:00 PM, Adam Williams wrote: > Thanks, i'll try that.  what is the difference in using '' and ""?  I > thought they were interchangeable. >

Re: [PHP] html email showing instead of line breaks

2009-09-24 Thread Adam Williams
oh nevermind, i see double quotes translate the \r\n to its appropriate EOL character. Adam Williams wrote: Thanks, i'll try that. what is the difference in using '' and ""? I thought they were interchangeable. Jonathan Tapicer wrote: \r\n should be between double quotes: "\r\n"

Re: [PHP] html email showing instead of line breaks

2009-09-24 Thread Adam Williams
Thanks, i'll try that. what is the difference in using '' and ""? I thought they were interchangeable. Jonathan Tapicer wrote: \r\n should be between double quotes: "\r\n" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] html email showing instead of line breaks

2009-09-24 Thread Jonathan Tapicer
\r\n should be between double quotes: "\r\n" On Thu, Sep 24, 2009 at 3:52 PM, Adam Williams wrote: > I have users enter support tickets into a a form and then it > emails it to me, I'm trying to get the emails to display when they hit enter > correctly, so i'm changing the \r\n to , but in the e

[PHP] html email showing instead of line breaks

2009-09-24 Thread Adam Williams
I have users enter support tickets into a a form and then it emails it to me, I'm trying to get the emails to display when they hit enter correctly, so i'm changing the \r\n to , but in the email i'm getting, its displaying the instead of a line break: here is the code: $message = "new supp