Re: Server error when executing mail() function

From: Date: Tue, 28 May 2002 18:00:30 +0000
Subject: Re: Server error when executing mail() function
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-99518@lists.php.net to get a copy of this message
Hi All, I've now fixed the problem myself. It appears as though the problem was in the 'sendmail_from' element of php.ini. Even though the address I gave on that line was a perfectly legitimate email address, once I changed it, it worked fine. The new address was longer than the old, so it wasn't a problem with the length. I have no idea why it happened, it's quite annoying that it did cos it would be loads better for me if it accepted the original one. Oh well. Cheers for all the help I received. Paul. > ----- Original Message ----- > From: Paul Cuthbertson > To: php-general@lists.php.net ; Tyler Longren > Sent: Tuesday, May 28, 2002 10:27 AM > Subject: Re: [PHP] Server error when executing mail() function > > > I'm afraid all I get is: > > Warning: Server Error in d:\htdocs\scriptname.php on line 19 > > Line 19 being the mail() command. The script works fine on a different > server. Any Ideas? > > Paul. > > > ----- Original Message ----- > From: "Tyler Longren" <tyler@captainjack.com> > To: "Paul Cuthbertson" <paul.cuthbertson@zoom.co.uk>; > <php-general@lists.php.net> > Sent: 28 May 2002 16:14 > Subject: Re: [PHP] Server error when executing mail() function > > > > Is 'Server Error' all you get? > > If there's more, please post the whole error message. ;-) > > > > thanks! > > tyler > > > > ----- Original Message ----- > > From: "Paul Cuthbertson" <paul.cuthbertson@zoom.co.uk> > > To: <php-general@lists.php.net> > > Sent: Tuesday, May 28, 2002 9:06 AM > > Subject: [PHP] Server error when executing mail() function > > > > > > Hi, > > > > I keep getting a 'Server Error' when executing the mail() function. I > > thought the problem was the SMTP server in php.ini, so I've tried several > > alternatives (including my Outlook smtp and free smtp servers). I'm > starting > > to think that it's not that that's causing the problem. Is there anything > > else that can cause the same error? > > > > Info: > > OS: Win98 > > PHP Version: 4.1.2 > > Web Server: Apache/1.3.6 (Win32) > > Browser: MSIE 6.0 > > > > Regards, > > > > Paul Cuthbertson. > > > > > > > >

« previous php.general (#99518) next »