Re: New line characters and carriage returns

From: Date: Fri, 24 Oct 2003 20:40:09 +0000
Subject: Re: New line characters and carriage returns
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-167492@lists.php.net to get a copy of this message
* Thus wrote Jonathan Villa (jvilla@isdesigndev.com): > Ok, don't know what I am doing wrong here...but for some reason I cannot > get new line or carriage return characters to work correctly... > > For example, > > When I send some emails, I try > > $msg .= "From: me@mydomain.com\r\n > Content-Type: text/plain\r\n" > $msg .= "From: me@mydomain.com\r\nContent-Type: text/plain\r\n"; Your mail Program is seeing: From: me@mydomain.com Content-Type: text/plain The empty line tells the program that it has reached the end of headers. Curt -- "My PHP key is worn out" PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/

« previous php.general (#167492) next »