|
Prev: Really need help on sendmail mailertable and only one email address relay.
Next: Sendmail performance
From: paul814 on 9 Apr 2008 10:16 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: <?php /* Get contents of buffer and email them */ $out = ob_get_contents(); $to = "paul(a)company.com"; $subject = "Production report"; $txt = "test"; $headers = "From: Report(a)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.
From: Tilman Schmidt on 10 Apr 2008 06:29
paul814(a)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/... |