Bug #17753: mail() doesn't send body when headers are set (4th parameter)

From: Date: Thu, 13 Jun 2002 20:16:54 +0000
Subject: Bug #17753: mail() doesn't send body when headers are set (4th parameter)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10380@lists.php.net to get a copy of this message
From: WPinegar@healthtech.net Operating system: Windows 2000 Server PHP version: 4.0CVS-2002-06-13 PHP Bug Type: Mail related Bug description: mail() doesn't send body when headers are set (4th parameter) I just downloaded the latest Win32 build of PHP 4.3.0-dev from http://snaps.php.net/win32 and noticed that the following code segment does not work correctly: mail("testuser@mydomain.com", "Test E-Mail", $PHP_AUTH_USER." has send a test e-mail message.", "From: webmaster@mydomain.com\nReply-To: $replyto\nX-Mailer: PHP/".phpversion()); In the current development version of PHP 4.3.0-dev the e-mail is sent but there is no body. When I revise my code and omit the headers from the 4th parameter, everything works fine and the body of the e-mail message is sent correctly. mail("testuser@mydomain.com", "Test E-Mail", $PHP_AUTH_USER." has send a test e-mail message."); Please correct this problem. Thanks! -- Edit bug report at http://bugs.php.net/?id=17753&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17753&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17753&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17753&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17753&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17753&r=support Expected behavior: http://bugs.php.net/fix.php?id=17753&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17753&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17753&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17753&r=globals

« previous php.bugs (#10380) next »