lib/mail/MailSettings.php
public function setSpamCheck($enable, $threshold = null, $post_to_url = null)
    {
        if ($enable instanceof SpamCheck) {
            $spam_check = $enable;
            $this->spam_check = $spam_check;
            return;
        }
        $this->spam_check = new SpamCheck($enable, $threshold, $post_to_url);
        return;
    }
public function setSpamCheck($enable, $threshold = null, $post_to_url = null)
    {
        if ($enable instanceof SpamCheck) {
            $spam_check = $enable;
            $this->spam_check = $spam_check;
            return;
        }
        $this->spam_check = new SpamCheck($enable, $threshold, $post_to_url);
        return;
    }
public function setSpamCheck ( $ enable , $ threshold = null , $ post_to_url = null ) { if ( $ enable instanceof SpamCheck ) { $ spam_check = $ enable ; $ this -> spam_check = $ spam_check ; return ; } $ this -> spam_check = new SpamCheck ( $ enable , $ threshold , $ post_to_url ) ; return ; }
Set spam check settings on a MailSettings object

@param SpamCheck|bool $enable The SpamCheck object or an
indication if the setting is enabled
@param int $threshold The threshold used to determine if your
content qualifies as spam on a scale
from 1 to 10, with 10 being most strict,
or most
@param string $post_to_url An Inbound Parse URL that you would like
a copy of your email along with the spam
report to be sent to

@return null
Set spam check settings on a MailSettings object