PHP code example of riverline / spamassassin
1. Go to this page and download the library: Download riverline/spamassassin library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
riverline / spamassassin example snippets
use Riverline\SpamAssassin\PostmarkWebservice
$spamAssassin = new PostmarkWebservice();
echo $spamAssassin->getScore($rawEmail);
// Optionally get the full report
echo $spamAssassin->getReport();