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
AC Host Canada
----- Original Message -----
From: "John" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, October 06, 2002 8:31 PM
Subject: [PHP] server error sending email from script
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?
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: [EMAIL PROTECTED]
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php