예제 #1
0
 public function createMail(Kwc_Mail_Recipient_Interface $recipient, $data = null, $toAddress = null, $format = null, $addViewTracker = true)
 {
     $mail = parent::createMail($recipient, $data, $toAddress, $format, $addViewTracker);
     if ($this->getRow()->from_email && $this->_getSetting('editFrom')) {
         $mail->setFrom($this->getRow()->from_email, $this->getRow()->from_name);
     }
     if ($this->getRow()->reply_email && $this->_getSetting('editReplyTo')) {
         $mail->setReplyTo($this->getRow()->reply_email);
     }
     return $mail;
 }
예제 #2
0
 public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $ret = parent::getTemplateVars($renderer);
     $ret['parent'] = $this->getData()->parent;
     return $ret;
 }
예제 #3
0
 public function getTemplateVars()
 {
     $ret = parent::getTemplateVars();
     $ret = array_merge($ret, $this->getMailData());
     return $ret;
 }
예제 #4
0
 public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $ret = parent::getTemplateVars($renderer);
     $ret = array_merge($ret, $this->getMailData());
     return $ret;
 }