I have a PHP application which is used by clients to send emails to their customers. There is a page that lets client user build email templates to send to their customers.
I want to add a functionality called 'Spam check'. This will allow client users to check their email template pass spam filter or not.
I have spamassassin installed on the server. How do I use it to check spam contents in the email template before it is sent to the customers ?