On Saturday 26 January 2002 04:48, Greg Sidelinger wrote:
> Ok I'm having a problem with the new line char \n in strings.  I'm
> trying to contrast an email that gets sent with the mail() function.
> Here is what I'm doing.
> $message = "line1\n";
> $message .= "line2\n\n";
> $message .= "line3\n";
> ...
> $message = "lne99";

Is this a typo in your message or in your code? Shouldn't it be:

  $message .= "lne99";

> mail ("email", "subject", $message);
> but when the email is received not all the new lines r taken. Can anyone
> help me.  Also where can I get a list of all the special chars like \n
> and what they meain.

Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

Biggest security gap -- an open mouth.

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to