コード例 #1
0
 public function send($transport = null)
 {
     $from = $this->getFrom();
     if (empty($from)) {
         throw new \Gems_Exception('No sender email set!');
     }
     // Get the transport method when it was not set
     if (is_null($transport)) {
         $transport = $this->checkTransport($this->getFrom());
     }
     parent::send($transport);
 }
コード例 #2
0
 public function send($transport = null)
 {
     // Before we forward to the \Zend_Mail send method, first perfom a bounce check
     if (is_null($transport)) {
         $transport = $this->checkTransport($this->getFrom());
     }
     parent::send($transport);
 }
コード例 #3
0
ファイル: MonitorJob.php プロジェクト: GemsTracker/MUtil
 /**
  * Send the actual mail
  *
  * @param string $subject
  * @param string $message BB Code message
  */
 private function _sentMail($subject, $message)
 {
     // Send a seperate mail to each recipient, otherwise they might do nothing
     foreach ($this->to as $to) {
         $mail = new \MUtil_Mail();
         $mail->addTo($to);
         if ($this->from) {
             $mail->setFrom($this->from);
         } else {
             $mail->setFromToDefaultFrom();
         }
         $replacements = $this->getMailVariables();
         $mail->setSubject(strtr($subject, $replacements));
         $mail->setBodyBBCode(strtr($message, $replacements));
         $mail->send();
     }
 }