Re: Problem with newline and email

From: Date: Fri, 06 Apr 2001 22:50:48 +0000
Subject: Re: Problem with newline and email
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-47520@lists.php.net to get a copy of this message
Doesn't either just "\r" or just "\n" work? Then again I've never tried using them, but I can't imagine that newline and carriage return doesn't force a new line. You could always send an HTML mail and use <br> instead? -- Plutarck Should be working on something... ...but forgot what it was. "Pierre-Yves Lemaire" <py@e-medhosting.com> wrote in message news:5.0.2.1.0.20010406114635.00a4dec0@pop2.sympatico.ca... > Hello, > > ok I am getting completely crazy here, I use this to make shure > outlook will display newlines correctly. But now I found out > that exchange is jumping 2 lines at every newline with this... > $msg = str_replace ( "\n", "\r\n", $msg ); > > My question, what sould I use in order to send a long message, > wich is coming multiple db fields to a text file to php mail(), > so it will be formatted nicely on all email client? > Or, is it possible? > > > Any piece of code, tutorial, newsletter script, good wiches or > old grandma's soup would be so appreciated! > > py > > > > > > > + ====================== > + Pierre-Yves Lem@ire > + E-MedHosting.com > + (514) 729-8100 > + pylem@sympatico.ca > + ====================== > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#47520) next »