php-spamassassin icon indicating copy to clipboard operation
php-spamassassin copied to clipboard

Extend README.md

Open samtuke opened this issue 9 years ago • 4 comments

The classes look great, but the README file doesn't give any clues as to the purpose of this library, or how to use it.

Please could you add a few lines explaining the intention behind his library, and some hints as to how to get started with it (e.g. should client be used as a public interface to the lib internals?). Thanks!

samtuke avatar Mar 14 '16 16:03 samtuke

Here's a small sample starter program.....

"localhost", "port" => "783", "user" => "ubuntu", ); $sa = new Spamassassin\Client($params); $message = file_get_contents('testemail.txt'); $result = $sa->getSpamReport($message); echo $result->message . "\n"; echo $result->score . "\n"; ?>

jstrouse avatar Oct 14 '16 19:10 jstrouse

Thanks! So this class interacts with spam assassin and provides a PHP interface to it, if you will?

samtuke avatar Oct 14 '16 21:10 samtuke

Correct. I'm using PHPMailer and I generated a sample email text and ran it through SpamAssassin to provide feedback to users if the email their about to send looks like spam.

jstrouse avatar Oct 25 '16 19:10 jstrouse

This project is very interesting, it can give way to setup your own spam detection server, not just for email but for all types of messages. I have yet to find a reliable spam detection on the market and this can be a good alternative.

yellow1912 avatar Feb 28 '19 04:02 yellow1912