Esempio n. 1
0
File: Smtp.php Progetto: wuxw/YYF
 /**
  * SMTP RCPT TO
  * SUCCESS 250
  * @return $this
  * @throws Exception
  * @throws Exception
  */
 protected function rcptTo()
 {
     foreach ($this->message->getTo() as $toEmail) {
         $in = "RCPT TO:<" . $toEmail . ">" . $this->CRLF;
         $code = $this->pushStack($in);
         if ($code !== '250') {
             throw new Exception('250' . $code . ']' . array_pop($this->resultStack));
         }
     }
     return $this;
 }