Forum Moderators: coopster

Message Too Old, No Replies

mail() reports true, but no email arrives

         

nacho_man

11:21 pm on Apr 27, 2005 (gmt 0)

10+ Year Member



Hi,

I want to send an email off a a php script. I made a test page with the following on

<?php
$to = "tony@domain.co.uk";
$subject = "Test";
$body = "Test message";
if (mail($to, $subject, $body))
{
echo("<p>Message sent!</p>");
}
else
{
echo("<p>Message delivery failed...</p>");
}
?>

It says message sent but the mail never arrives. I suspect someone is going to direct me to my mail logs.. but where are they located? the server runs LINUX-FEDORA (redhat) and I have telnet root access.

Thanks for any replies your help is much appreciated.

Tony Hyams

ironik

12:12 am on Apr 28, 2005 (gmt 0)

10+ Year Member



Not to sure on the mail logs side of things, but mail() won't report if an item was successfully sent, only that it has been passed to the mail server.