I am working on an application that lets users build email campaigns to distribute en masse (following all good non-spam practices, of course). We want to put some kind of scoring system in there to get onto them if they put in key things, like "Money back guarantee" or "free viagra", all caps subject lines, etc.
After doing tons of research, it looks like it would be great to just send their email content to SpamAssassin, get a score, and return that to them. I could just write my own spam detection, but it couldn't compete with SA.
Problem is, I can't figure out how to use php to talk to SA. Can't I just hand it some html and get a number and some warnings back? Is there any other open source solution to this?