Code Duplication    Length = 11-11 lines in 2 locations

include/phpmailer/class.phpmailer.php 2 locations

@@ 775-785 (lines=11) @@
772
    /**
773
     * Send messages using $Sendmail.
774
     */
775
    public function isSendmail()
776
    {
777
        $ini_sendmail_path = ini_get('sendmail_path');
778
779
        if (!mb_stristr($ini_sendmail_path, 'sendmail')) {
780
            $this->Sendmail = '/usr/sbin/sendmail';
781
        } else {
782
            $this->Sendmail = $ini_sendmail_path;
783
        }
784
        $this->Mailer = 'sendmail';
785
    }
786
787
    /**
788
     * Send messages using qmail.
@@ 790-800 (lines=11) @@
787
    /**
788
     * Send messages using qmail.
789
     */
790
    public function isQmail()
791
    {
792
        $ini_sendmail_path = ini_get('sendmail_path');
793
794
        if (!mb_stristr($ini_sendmail_path, 'qmail')) {
795
            $this->Sendmail = '/var/qmail/bin/qmail-inject';
796
        } else {
797
            $this->Sendmail = $ini_sendmail_path;
798
        }
799
        $this->Mailer = 'qmail';
800
    }
801
802
    /**
803
     * Add a "To" address.