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;
 }
 public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $ret = parent::getTemplateVars($renderer);
     $ret['parent'] = $this->getData()->parent;
     return $ret;
 }
 public function getTemplateVars()
 {
     $ret = parent::getTemplateVars();
     $ret = array_merge($ret, $this->getMailData());
     return $ret;
 }
 public function getTemplateVars(Kwf_Component_Renderer_Abstract $renderer)
 {
     $ret = parent::getTemplateVars($renderer);
     $ret = array_merge($ret, $this->getMailData());
     return $ret;
 }