src/NotifierEmailPhpMailerService.php
private function _bootstrapMailHandler(){
        //confirm that mailHandler is an instance of PHPMailer
        if(!isset($this->mailHandler)
          && !($this->mailHandler instanceof \PHPMailer)
        ){
            throw new NotifierEmailException("The mail handler is not an instance of PHPMailer");
        }
        
        //bootstrap some common settings
        if((bool)$this->configuration["IS_SMTP"] === true){
            $this->mailHandler->isSMTP();
        }
        
        if((bool) $this->configuration["IS_HTML"] === true){
            $this->mailHandler->isHTML(true);
        }
        
        $this->mailHandler->SMTPDebug  = (int)   $this->configuration["SMTP_DEBUG"];
        $this->mailHandler->SMTPAuth   = (bool)  $this->configuration["SMTP_AUTH"];
        $this->mailHandler->Port       = (int)   $this->configuration["PORT"];
        $this->mailHandler->SMTPSecure = (string)$this->configuration["SMTP_SECURE"];
        $this->mailHandler->Host       = (string)$this->configuration["HOST"];
        $this->mailHandler->Username   = (string)$this->configuration["USERNAME"];
        $this->mailHandler->Password   = (string)$this->configuration["PASSWORD"];
        $this->mailHandler->LE         = (string)$this->configuration["LINE_ENDING"];
        $this->mailHandler->CharSet    = (string)$this->configuration["CHARSET"];
        $this->mailHandler->From       = (string)$this->configuration["EMAIL_FROM"];
        $this->mailHandler->FromName   = (string)$this->configuration["EMAIL_FROM_NAME"];
        $this->mailHandler->WordWrap   = (int)   $this->configuration["WORD_WRAP"];
    }
private function _bootstrapMailHandler(){
        //confirm that mailHandler is an instance of PHPMailer
        if(!isset($this->mailHandler)
          && !($this->mailHandler instanceof \PHPMailer)
        ){
            throw new NotifierEmailException("The mail handler is not an instance of PHPMailer");
        }
        
        //bootstrap some common settings
        if((bool)$this->configuration["IS_SMTP"] === true){
            $this->mailHandler->isSMTP();
        }
        
        if((bool) $this->configuration["IS_HTML"] === true){
            $this->mailHandler->isHTML(true);
        }
        
        $this->mailHandler->SMTPDebug  = (int)   $this->configuration["SMTP_DEBUG"];
        $this->mailHandler->SMTPAuth   = (bool)  $this->configuration["SMTP_AUTH"];
        $this->mailHandler->Port       = (int)   $this->configuration["PORT"];
        $this->mailHandler->SMTPSecure = (string)$this->configuration["SMTP_SECURE"];
        $this->mailHandler->Host       = (string)$this->configuration["HOST"];
        $this->mailHandler->Username   = (string)$this->configuration["USERNAME"];
        $this->mailHandler->Password   = (string)$this->configuration["PASSWORD"];
        $this->mailHandler->LE         = (string)$this->configuration["LINE_ENDING"];
        $this->mailHandler->CharSet    = (string)$this->configuration["CHARSET"];
        $this->mailHandler->From       = (string)$this->configuration["EMAIL_FROM"];
        $this->mailHandler->FromName   = (string)$this->configuration["EMAIL_FROM_NAME"];
        $this->mailHandler->WordWrap   = (int)   $this->configuration["WORD_WRAP"];
    }
function _bootstrapMailHandler() - Prepare the mailHandler by setting the configurations

@return void

@access private