#20625 [NEW]: Mail Function output displaying '>' before the word From

From: Date: Mon, 25 Nov 2002 16:59:42 +0000
Subject: #20625 [NEW]: Mail Function output displaying '>' before the word From
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-25798@lists.php.net to get a copy of this message
From: sarah@perceptiondesign.net Operating system: Free BSD PHP version: 4.2.0 PHP Bug Type: *Mail Related Bug description: Mail Function output displaying '>' before the word From * PHP version is actually 4.1.2 but Server is hosted with NTT/Verio so unable to update PHP version I am testing my mail function where a user enters their subject and message on a form and the next page pulls emails from a database and mails out to everyone. When I put the word From in the message box in the format From.. or From then on.. or From Sat 16th. it displays a '>' before the word From like this >From then on.. It doesn't do this with lower case from or upper case. It is ok when you insert a space before writing From. I thought it might be getting mixed up with the From tag. My code is this: <?php echo "Emails have been sent to the following people: <br><br>"; $header = "From: Blair Drummond Safari Park <info@blairdrummond.com>\n"; $header .= "Content-Type: text/html\n"; $db = mysql_connect("localhost", "******", "******"); mysql_select_db("******",$db); $result = mysql_db_query("******","select * from consumers where email<>'' and email <> ' ' and mailing<>-1"); while ($row = mysql_fetch_array($result)) { echo $row["email"]." (".$row["first_name"]." ".$row["surname"].") "; mail($row["email"],$subject,$message,$header); } ?> -- Edit bug report at http://bugs.php.net/?id=20625&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20625&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20625&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20625&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20625&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20625&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20625&r=support Expected behavior: http://bugs.php.net/fix.php?id=20625&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20625&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20625&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20625&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20625&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20625&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20625&r=isapi

« previous php.bugs (#25798) next »