#14954 [Com]: Warning: Server Error with mail() function

From: Date: Sun, 13 Jul 2003 15:54:13 +0000
Subject: #14954 [Com]: Warning: Server Error with mail() function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-43898@lists.php.net to get a copy of this message
 ID:               14954
 Comment by:       cdy at qnet dot com
 Reported By:      jberall at yahoo dot com
 Status:           No Feedback
 Bug Type:         Mail related
 Operating System: Windows 2000
 PHP Version:      4.1.0
 New Comment:

contacted ITS (AVC Information Technology Services)several times about
unreliable e-mail system; they seem confused. 

do you have any suggestions?


Previous Comments:
------------------------------------------------------------------------

[2003-02-01 06:35:55] js at jensen-siu dot net

I encountered the same problem on local windows server. I solved it by
correcting my php mail() script : be sure of your syntax.

------------------------------------------------------------------------

[2002-10-23 13:20:39] kraj at illumen dot com

Make sure that you have set the sendmail_from variable in php.ini to a
user which is allowed to send mail in the SMTP server.

------------------------------------------------------------------------

[2002-07-23 19:46:28] mwilmes at avc dot edu

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

------------------------------------------------------------------------

[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:51:03] mfischer@php.net

Error handlig has been improvied, please try a snapshot from
http://snaps.php.net/win32/php4-win32-latest.zip

------------------------------------------------------------------------

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



Thread (1 message)

  • cdy at qnet dot com
  • Unknown Message
    • cdy at qnet dot com
« previous php.bugs (#43898) next »