PHP 4.0 Bug #5802: mail() works with PHP3 but not PHP4

From: Date: Wed, 26 Jul 2000 21:33:08 +0000
Subject: PHP 4.0 Bug #5802: mail() works with PHP3 but not PHP4
Groups: php.dev 
Request: Send a blank email to php-dev+get-26401@lists.php.net to get a copy of this message
From: jswift@bindview.com Operating system: WinNT 4.0 SP 6 PHP version: 4.0.1pl2 PHP Bug Type: Misbehaving function Bug description: mail() works with PHP3 but not PHP4 This line works fine in PHP Version 3.0.16 but not in PHP Version 4.0.1pl2: mail($email,'[WorkOrder]: New WO received',$msgText,"From: jswift@bindview.com\r\n"); I have tried leaving the extra header information off: mail($email,'[WorkOrder]: New WO received',$msgText); php3.ini and php.ini both contain the same section: SMTP = "rd.bindview.com" sendmail_from = "jswift@bindview.com" ;sendmail_path = PHP4 seems to work well in other circumstances, such as retrieving info from the database, etc. When I go to test PHP4, I rename index.php3 to index.php; the .php extension is set up to run via PHP4. When I comment the mail() lines in the script, PHP4 executes it correctly. This is with the CGI version of PHP4, not the ISAPI version. I'm running WinNT4.0 and IIS4.0. I am loading the php_mssql70.dll. Please let me know if you need more info or if I can help in any way. (I'm really excited about getting 4.0 running so that I can implement its session support.) Thanks, Joel Swift jswift@bindview.com

« previous php.dev (#26401) next »