Are there any particular things to do to set up PHP5 under 
FC6 Linux, to send mail with the built-in PHP mail() 
function, while using TMDA? I have an outgoing TMDA log, but 
nothing appears in the log when I load a page with the 
following code. I do not receive the email either.

All I get is the "mail sent OK!" message from the PHP 
script, displayed in the browser window.


<?php

$to = '[EMAIL PROTECTED]';
$subject = 'php mail function tester';
$message = 'hello there, this mail was sent from php!';
$headers = 'From: [EMAIL PROTECTED]' . "\r\n" .
     'Reply-To: [EMAIL PROTECTED]' . "\r\n" .
     'X-Mailer: PHP/' . phpversion();


if ( mail($to, $subject, $message, $headers) ) {
   echo "mail sent OK!";
}
else {
   echo "Problem sending mail - :(";
}

?>

Kind Regards

Keith Roberts

------------------------------------------------------------
http://www.karsites.net
http://www.raised-from-the-dead.org.uk

This email address is challenge-response protected with
http://www.tmda.net
------------------------------------------------------------
_____________________________________________
tmda-users mailing list ([email protected])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to