PHP Classes

Spam Rating: Check whether a message is spam using spamassassin

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,382 All time: 2,811 This week: 91Up
Version License PHP version Categories
spam_rating 1Freely Distributable4.0Email


This is a simple class that can be used to check whether an e-mail message is spam.

It takes a text string with the whole contents of a message and stores it in a temporary file.

The class invokes the spamassassin program to make it evaluate the message file in order to determine whether it can be spam or not.

Innovation Award
PHP Programming Innovation award nominee
December 2007
Number 6

Prize: One subscription to the PDF edition of the magazine by PHP Architect
Determining whether a message is spam is not a trivial task.

Fortunately, there are very good dedicated tools to help in that process, like for instance spamassassin.

This class provides an integrated solution to let PHP scripts use spamassassin to analyze messages and determine whether they can be spam or not.

Manuel Lemos
Picture of Jijomon Thottungalthara
  Performance   Level  
Name: Jijomon Thottungalthara is available for providing paid consulting. Contact Jijomon Thottungalthara .
Classes: 6 packages by
Country: Italy Italy
Age: 43
All time rank: 763 in Italy Italy
Week rank: 358 Down14 in Italy Italy Down
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Files folder imageSample (1 file)
Plain text file spamchk.php Class Spam rating class using SpamAssassin

  Files folder image Files  /  Sample  
File Role Description
  Accessible without login Plain text file Application.html Output you can use this class to create similiar applicaitons

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:2,811
This week:91Up