Пример #1
0
 public function post(RFC5322Message $message)
 {
     $message->getHeader()->setValue("To", $this->recipient);
     $conn = new Net_SMTP($this->host->getHost(), $this->host->getPort());
     $conn->connect();
     $conn->mailFrom($this->bounceaddress);
     $conn->rcptTo($this->recipient);
     $conn->data($message->getPlain());
     $conn->disconnect();
     return true;
 }
Пример #2
0
 public function postCancel($cancel, $message)
 {
     return $this->post(RFC5322Message::parseCancelObject($this, $cancel, $message));
 }
Пример #3
0
 protected function getRFC5322Message($msgid)
 {
     // Lade die Nachricht und Parse sie
     if ($this->hasMessage($msgid)) {
         $article = $this->imapclient->getMessages($this->getArticleNr($msgid));
         if (PEAR::isError($article)) {
             throw new NotFoundMessageException($msgid, $this->folder);
         }
         return RFC5322Message::parsePlain(array_shift($article));
     }
     // Diese Nachricht gibt es offensichtlich nicht mehr ;)
     throw new NotFoundMessageException($msgid, $this->folder);
 }
Пример #4
0
 protected function getRFC5322Message($msgid)
 {
     if ($this->hasMessage($msgid)) {
         // Lade die Nachricht und Parse sie
         $article = $this->nntpclient->getArticle($msgid);
         if (PEAR::isError($article)) {
             throw new NotFoundMessageException($msgid, $this->group);
         }
         return RFC5322Message::parsePlain(implode("\r\n", $article));
     }
     // Diese Nachricht gibt es offensichtlich nicht mehr ;)
     throw new NotFoundMessageException($msgid, $this->group);
 }