PHP code example of tomaskarlik / emailspamtester

1. Go to this page and download the library: Download tomaskarlik/emailspamtester 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/ */

    

tomaskarlik / emailspamtester example snippets


$message = new Nette\Mail\Message;
dump($emailTester->getSpamReport($message));
dump($emailTester->getSymbols($message));
dump($emailTester->getScore($message));
dump($emailTester->isSpam($message));

spamassassin: TomasKarlik\EmailSpamTester\DI\EmailSpamTesterExtension

spamassassin:
	hostname: '127.0.0.1'
	port: 783
	received: TRUE #add Received header for testing