#14954 [Com]: Warning: Server Error with mail() function
| From: | kraj at illumen dot com | Date: | Wed, 23 Oct 2002 18:20:39 +0000 |
| Subject: | #14954 [Com]: Warning: Server Error with mail() function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-23122@lists.php.net to get a copy of this message | ||
ID: 14954
Comment by: kraj@illumen.com
Reported By: jberall@yahoo.com
Status: No Feedback
Bug Type: Mail related
Operating System: Windows 2000
PHP Version: 4.1.0
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2002-07-23 19:46:28] mwilmes@avc.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@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
------------------------------------------------------------------------
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