Edit report at https://bugs.php.net/bug.php?id=55216&edit=1

 ID:                 55216
 Updated by:         ahar...@php.net
 Reported by:        seinghhaccoski at rocketmail dot com
 Summary:            Bug in PHPmail
-Status:             Open
+Status:             Bogus
 Type:               Bug
 Package:            Mail related
 Operating System:   Debian
 PHP Version:        5.2.17
 Block user comment: N
 Private report:     N

 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

As documented on the mail() manual page, your MTA is (a bad) one that expects 
only 
\n to separate headers, not \r\n.


Previous Comments:
------------------------------------------------------------------------
[2011-07-15 15:49:12] seinghhaccoski at rocketmail dot com

Description:
------------
Email that shows headers 

Test script:
---------------
//some $_POST['email'] validations 
$to = $_POST['email'];
$subject = 'Ordinazione Patronum.tk';
$headers = 'From: patronum...@patronum.tk' . "\r\n";
$headers .=    'Reply-To: patronum...@patronum.tk' . "\r\n" .
'X-Mailer: PHP/' . phpversion(). "\r\n".
"MIME-Version: 1.0\r\n".
"Content-Type: text/html; charset=\"iso-8859-1\"\r\n".
"Content-Transfer-Encoding: 7bit\n\n";
mail($to, $subject, $messaggio, $headers);

Expected result:
----------------
I want the email headers to don't appear in the email content

Actual result:
--------------
A mail with the headers in the content:
example:
Reply-To: patronum...@patronum.tk

X-Mailer: PHP/5.2.6-1+lenny9

MIME-Version: 1.0

Content-Type: text/html; charset="iso-8859-1"

Content-Transfer-Encoding: 7bit
Message-Id: <20110715192326.c5b9c772...@patronum.tk>
Date: Fri, 15 Jul 2011 21:23:26 +0200 (CEST)
La sua ordinazione &egrave; stata completata con successo. <br>Totale: 100


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=55216&edit=1

Reply via email to