php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5802 mail() works with PHP3 but not PHP4
Submitted: 2000-07-26 23:33 UTC Modified: 2000-09-04 14:54 UTC
From: jswift at bindview dot com Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0.1pl2 OS: WinNT 4.0 SP 6
Private report: No CVE-ID: None
 [2000-07-26 23:33 UTC] jswift at bindview dot com
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-26 23:37 UTC] jswift at bindview dot com
The symptom:
the web page attempts to load, but the server never responds with information.  I do not receive an error message.

I have also tried using \n and \r\n in the message text and header info.  I have tried leaving them off altogether.

I have tried uncommenting the sendmail_path and leaving it empty.

Thanks again,
Joel Swift
 [2000-07-27 05:12 UTC] hholzgra@php.net
please try latest cvs or snapshot, 

php 3 and 4 windows smtp code should be
in sync again ...
 [2000-08-20 02:16 UTC] sniper@php.net
No feedback from user.

--Jani
 [2000-08-21 14:33 UTC] sniper@php.net
User feedback:

I downloaded and built the latest version from CVS but now
it won't read my php.ini file. No idea if the SMTP problem is fixed.

---


Please include your configure line here.

--Jani
 [2000-09-04 14:54 UTC] sniper@php.net
Please try latest CVS or snapshot from http://snaps.php.net
and reopen this bug report if  mail() doesn't work. 

If something else is broken submit a new bug report. One bug per report.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 24 21:01:28 2024 UTC