#14510 [Com]: Unknown error in mail function

From: Date: Wed, 09 Apr 2003 07:50:02 +0000
Subject: #14510 [Com]: Unknown error in mail function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37405@lists.php.net to get a copy of this message
ID: 14510 Comment by: jie dot li at rdc dot ericsson dot se Reported By: davidfelton at codemasters dot com Status: No Feedback Bug Type: Mail related Operating System: Windows 2000 Terminal, IIS5 PHP Version: 4.1.0 New Comment: Yes, I met the same problem in php server. I use php 4.1.2 for windows binary. And when I use mail() function the error message "unknown error" is issued. I don't know why this action can cause the error. In the php.ini I set like the following: [mail function] ; For Win32 only. SMTP = smtp.ericsson.se ; For Win32 only. ; sendmail_from = ; For Unix only. You may supply arguments as well (default: 'sendmail -t -i'). ;sendmail_path = I can not find any faulty setting in this configuation file. Is there anybody can give me a hand? Previous Comments: ------------------------------------------------------------------------ [2002-07-03 01:00:08] php-bugs at lists dot php dot net No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2002-06-02 13:48:22] mfischer@php.net SMTP error reporting has been improved, please try a snapshot from http://snaps.php.net/win32/php4-win32-latest.zip ------------------------------------------------------------------------ [2002-04-15 15:28:03] jjgracia at lazerpro dot com I got the same error on Win2000+IIS5. I used this on the php page to overwrite ini values: <?php ini_set("sendmail_from",NULL); ini_set("sendmail_path",NULL); ini_set("SMTP","aaaa.xxxx.cccc.gggg");// Add SMTP server IP mail($mail_to, $mail_subject, $mail_body, $mail_headers); ?> It seems you have to explicitly tell PHP that Sendmail is not in the server :) ------------------------------------------------------------------------ [2002-03-05 09:53:59] davidfelton at codemasters dot com If your php can't read the ini file (patch of file in phpinfo shows up as c:/winnt/ instead of c:/winnt/php.ini) You need to make sure that php has access to read the php.ini file through your security settings. My solution to the problem was to replace all the calls to mail() with my own function that writes out the raw emails to the mail pickup folder in c:\inetpub\mailroot\ - it took ages! ------------------------------------------------------------------------ [2002-03-05 09:13:08] ibasevitch at homtail dot com i have the same problme with win nt 4.0 terminal edition. did you find a solution...? it seems like it can't find the ini file. thanks ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/14510 -- Edit this bug report at http://bugs.php.net/?id=14510&edit=1

« previous php.bugs (#37405) next »