Fedora and sendmail, problems

Fedora and sendmail, problems

am 09.04.2008 16:16:18 von paul814

I've got a machine running fedora 6, send mail is on the machine as
well as PHP.

I had my code workiing on a Windows machine, but now in linux it will
not work.

I have a simple PHP, Page...something like this:
/* Get contents of buffer and email them */
$out = ob_get_contents();

$to = "paul@company.com";
$subject = "Production report";
$txt = "test";
$headers = "From: Report@company.com";
mail($to,$subject,$out,$headers); # <--- sends the email
ob_end_clean();
?>

This does not work in linux, but works fine on windows. no email is
sent in linux.
Any ideas? I have edited the php.ini file to uncomment the sendmail
lines.

Re: Fedora and sendmail, problems

am 10.04.2008 12:29:25 von Tilman Schmidt

paul814@excite.com schrieb:
> I have a simple PHP, Page...something like this:
[...]
> This does not work in linux, but works fine on windows. no email is
> sent in linux.
> Any ideas? I have edited the php.ini file to uncomment the sendmail
> lines.

Look in your Sendmail log if anything shows up when you try that PHP.
If yes, it will probably give you a hint on what goes wrong. If you
don't understand it yourself, feel free to post the log entry here.

If nothing shows up in the Sendmail log, the problem is with your PHP
code not even trying to contact your Sendmail daemon. In that case
you might have better luck asking in a PHP forum.

HTH
T.

--
Please excuse my bad English/German/French/Greek/Cantonese/Klingon/...