Re: mail() not sending -- Little bit OT
| From: | Justin French | Date: | Fri, 26 Apr 2002 03:15:20 +0000 |
| Subject: | Re: mail() not sending -- Little bit OT | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94701@lists.php.net to get a copy of this message | ||
Are you using headers in your mail script??? I'm no expert on sendmail at
all, but your host may require the From: user@somewhere.com header before it
will send????
<?
$to = "user@domain.com";
$subject = "test";
$message = "testing";
$headers = "From: user@domain.com";
mail($to,$subject,$message,$headers);
?>
It's worth a shot :)
Otherwise, does the binary and Apache version share the same php.ini
file????
Justin French
--------------------
Creative Director
http://Indent.com.au
--------------------
on 26/04/02 11:45 AM, David Redmond (davidr@webcentral.com) wrote:
> Hi All,
>
> When attempting to send an email through a PHP script via Apache, no emails
> are sent. However if I use the standalone binary and run the same script
> but on the console then it works fine.
>
> Because of that I have a feeling that there is something in Sendmail which
> is preventing the "nobody" user to send emails since "nobody" is what
> Apache
> runs as.
>
> Any ideas appreciated :)
>
> Cheers