isSendmail() public method

Send messages using $Sendmail.
public isSendmail ( ) : void
return void
Esempio n. 1
1
 /**
  *
  */
 private function config()
 {
     if (isset($this->config['lang']['local']) && isset($this->config['lang']['path'])) {
         $this->mail->setLanguage($this->config['lang']['local'], $this->config['lang']['path']);
     }
     $this->mail->CharSet = $this->config['charset'];
     switch ($this->config['transport']) {
         case 'smtp':
             $this->mail->isSMTP();
             if (isset($this->config['debug'])) {
                 $this->mail->SMTPDebug = $this->config['debug'];
                 $this->mail->Debugoutput = 'html';
             }
             $this->mail->Host = $this->config['host'];
             if (isset($this->config['user'])) {
                 $this->mail->SMTPAuth = true;
                 $this->mail->Username = $this->config['user'];
                 $this->mail->Password = $this->config['pass'];
                 $this->mail->Port = $this->config['port'];
                 if (isset($this->config['encrypt'])) {
                     $this->mail->SMTPSecure = $this->config['encrypt'];
                 }
             }
             break;
         case 'sendmail':
             $this->mail->isSendmail();
             $this->mail->Sendmail = $this->config['command'];
             break;
     }
 }