Hi,
I want to use Spam-Assassin for scoring mails for spam before sending them to the users. I'm using PHP for executing it as a process using the exec
.
exec("/usr/bin/spamc -R < {$fname}",$score,$rr);
The problem is that the result being returned is always 0/0. I took the PHP code from PHP Classes website. The demo message being used is below
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>free free</title>
<meta content="false" http-equiv="imagetoolbar">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body>
viagra test test free free
</center></body></html>
Please suggest what could be the problem