RE: [PHP] Server error when executing mail() function
| From: | Jared Boelens | Date: | Tue, 28 May 2002 16:08:11 +0000 |
| Subject: | RE: [PHP] Server error when executing mail() function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-99502@lists.php.net to get a copy of this message | ||
I was having this same problem a few weeks ago and ended up giving up.
After reading the response about the headers i decided to try it.
If i call this it works:
mail($recipient, $subject);
If i call this is gets the server error msg:
mail($recipient, $subject, $headers);
In that case their are like 10 headers but none of them are ended properly
with CRLF.
Hope this helps
-Jared
-----Original Message-----
From: Paul Cuthbertson [mailto:paul.cuthbertson@zoom.co.uk]
Sent: Tuesday, May 28, 2002 11:49 AM
To: Tyler Longren; php-general@lists.php.net
Subject: Re: [PHP] Server error when executing mail() function
Firstly, thank you for the continued help. Unfortunately I just tried this:
<? mail ("paul.cuthbertson@zoom.co.uk", "Test", "Testing"); ?>
..and the error still occurred. The error appears immediately, as if it's
not even trying to connect to anything.
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:34
Subject: Re: [PHP] Server error when executing mail() function
> Try this thread on phpbuilder.com:
>
> http://www.phpbuilder.com/forum/read.php3?num=4&id=6681&loc=0&thread=6681
>
> One person suggests using fewer headers as windows can be picky about
which
> headers you're trying to send with your e-mail.
>
> Good luck,
> Tyler Longren
> Captain Jack Communications
> www.captainjack.com
> tyler@captainjack.com
>
> ----- 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.
> >
> >
> >
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php