PHP mail() function and TMDA

Keith Roberts <[email protected]>
Newsgroups gmane.mail.spam.tmda.user
Message-ID <[email protected]>
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 = 'keith@my_isp.server';
$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
------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.