Re: server error sending email from script
| From: | Jason Reid | Date: | Mon, 07 Oct 2002 02:35:05 +0000 |
| Subject: | Re: server error sending email from script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-119040@lists.php.net to get a copy of this message | ||
it appears you are on windows, so look in php.ini for the smtp directive.
enter your isp's smtp server address there. then restart apache and it
should work.
Jason Reid
jason@achost.ca.
--
AC Host Canada
www.achost.ca
----- Original Message -----
From: "John" <john@benzene6.com>
To: <php-general@lists.php.net>
Sent: Sunday, October 06, 2002 8:31 PM
Subject: [PHP] server error sending email from script
Q:
If I'm not on the server that is to be used to send the email, how can I
configure PHP to send from a certain server?
thanks all
Warning: Server Error in c:\program files\apache
group\apache\htdocs\sonicmailer\sonicadmin.php on line 276
and line 276 is
mail($address, stripslashes($subject), $finalbody, $mailheaders);
and it's not sending the email.
The variables are OK,
$mailheaders=From: blah Reply-To: john@blah.com