PHP 4.0 Bug #8113 Updated: there is a "!" and a linebreak in any mail that i send in text mode

From: Date: Tue, 05 Dec 2000 10:59:28 +0000
Subject: PHP 4.0 Bug #8113 Updated: there is a "!" and a linebreak in any mail that i send in text mode
Groups: php.dev 
Request: Send a blank email to php-dev+get-40103@lists.php.net to get a copy of this message
ID: 8113 User Update by: christian@buyclever.de Old-Status: Feedback Status: Open Bug Type: Mail related Description: there is a "!" and a linebreak in any mail that i send in text mode function create_order_productlist($productid, $number, $price, $description, $option_name1, $option1, $option_name2, $option2, $currency) { $file_pl = fopen(bc_TEMPLATES_TXT . "order_product_list.txt", "r"); /* format auslesen */ while (!feof($file_pl)) { $row = trim(fgets($file_pl, 1024)) . "\r"; if (strstr($row, "[%option1_name%]")) { if (is_set($option_name1)) $message .= $row; } else { $message .= $row; } } /* produkt einsetzen */ $message = str_replace("[%productid%]", $productid, $message); $message = str_replace("[%number%]", $number, $message); $message = str_replace("[%price%]", parse($price), $message); $message = str_replace("[%currency%]", $currency, $message); $message = str_replace("[%description%]", $description, $message); $message = str_replace("[%option1_name%]", $option_name1, $message); $message = str_replace("[%option1%]", $option1, $message); $message = str_replace("[%option2_name%]", $option_name2, $message); $message = str_replace("[%option2%]", $option2, $message); $message = str_replace("[%number_price%]", parse($number * $price), $message); fclose($file_pl); return $message; } $ordermail = create_order_mail($order_productlist, $sender, $userid, $orderid, $firstname, $lastname, $address, $zipcode, $city, $country, $SETTINGS_sendcosts, $total, $SETTINGS_currency, $SETTINGS_takecosts); mail($email, "Subject", "$ordermail", "From: $sender\nContent-Type: text"); Previous Comments: --------------------------------------------------------------------------- [2000-12-05 05:52:21] sniper@php.net Please add a short example script into this report which can be used to reproduce this. --Jani --------------------------------------------------------------------------- [2000-12-05 05:09:02] christian@buyclever.de --with-apcs --with-mcrypt --with-pdflib --with-mysql --enable-ftp --with-zlib --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8113

« previous php.dev (#40103) next »