Bug #14954 Updated: Warning: Server Error with mail() function

From: Date: Tue, 23 Jul 2002 23:46:30 +0000
Subject: Bug #14954 Updated: Warning: Server Error with mail() function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14960@lists.php.net to get a copy of this message
ID: 14954 Updated by: mwilmes@avc.edu Reported By: jberall@yahoo.com Status: No Feedback Bug Type: Mail related Operating System: Windows 2000 PHP Version: 4.1.0 New Comment: I'm on an SMTP system where in order to send out email, there must either be a recipient on that SMTP server, or you must authenticate your username and password to the server in order to use it. The line mail("mwilmes@avc.edu", "the know","I suck"); works, but the line mail("dingbat@yahoo.com", "the down","I suck"); kicked back the error: Warning: Server Error in C:\Apache2\htdocs\foobar.php on line xxx My php.ini: [mail function] ; For Win32 only. SMTP=mail.avc.edu ; For Win32 only. sendmail_from=mwilmes@avc.edu ; For Unix only. You may supply arguments as well (default: 'sendmail -t -i'). ;sendmail_path= I wrote a program to intercept the messages being sent to and from my SMTP server. The php engine was denied because I wasn't authenticated as a email user to the server. As long as someone @avc.edu is in the recipient line, the server works. Only when there is no one in avc.edu and i don't authenticate, I get the boot. Hope this helps, Mike Wilmes Previous Comments: ------------------------------------------------------------------------ [2002-07-03 01:00:08] php-bugs@lists.php.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:51:03] mfischer@php.net Error handlig has been improvied, please try a snapshot from http://snaps.php.net/win32/php4-win32-latest.zip ------------------------------------------------------------------------ [2002-06-02 06:20:51] mcbridematt@hotmail.com Ah-Ha. Edit the php.ini file in %WINDIR SMTP = mail.xxx.com:25 (add the :25) ------------------------------------------------------------------------ [2002-06-02 06:12:40] mcbridematt@iprimus.com.au This bug also appears under Windows Me Apache 1.3.xx ------------------------------------------------------------------------ [2002-03-13 03:10:31] ras78@NOSPAMcaltanet.it I've got the same problems. Under Win2k SP2 (italian) then mail function doesn't work. If I config my smtp everything but my localhost or 127.0.0.1 all works fine. If I use Win2K english this problem doesn't appear. ------------------------------------------------------------------------ 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/14954 -- Edit this bug report at http://bugs.php.net/?id=14954&edit=1

« previous php.bugs (#14960) next »