note 29700 deleted from ref.mail by ronabop

From: Date: Sat, 22 Feb 2003 00:24:59 +0000
Subject: note 29700 deleted from ref.mail by ronabop
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-44334@lists.php.net to get a copy of this message
Very strange... If I use the headers like this (with \r\n like everybody says they should be): function send_mail($from_name, $from_mail, $to_name, $to_mail, $subject, $message) { $to = "\"$to_name\" <$to_mail>\n"; $headers = "From: \"$from_name\" <$from_mail>\n"; $headers .= "Reply-To: \"$from_name\" <$from_mail>\n"; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-Type: text/plain; charset=iso-8859-1\n"; $headers .= "X-Mailer: PHP4\r\n"; return(mail($to, $subject, $message, $headers)); } I get the headers in body of the message. If, instead, I only use \n, everything works fine. Any explanation ???

« previous php.notes (#44334) next »