public function execute()
 {
     // see how myBlockedEmailUtils create the URL
     $combined_email = $this->getRequestParameter("e");
     $valid = myBlockedEmailUtils::blockEmail($combined_email);
     $str = "You will no loger receive any mail from " . kConf::get('www_host') . ". Have a good day !";
     return $this->renderText($str);
     //return sfView::NONE;
 }
 /**
  * will verify if each recipient should be getting this email
  */
 public function save(PropelPDO $con = null)
 {
     // before saving - remove all the recipients that are in the blocked_email list
     $recipient_list = explode(self::RECIPIENT_SEPARATOR, $this->recipient_email);
     $new_recipient_email = "";
     foreach ($recipient_list as $recipient) {
         if ($new_recipient_email != "") {
             $new_recipient_email .= self::RECIPIENT_SEPARATOR;
         }
         if (myBlockedEmailUtils::shouldSendEmail(trim($recipient))) {
             $new_recipient_email .= $recipient;
         }
     }
     $this->recipient_email = $new_recipient_email;
     if ($this->recipient_email != "") {
         if ($this->isNew()) {
             $this->setDc(kDataCenterMgr::getCurrentDcId());
         }
         parent::save($con);
     }
 }
 public function getBlockEmailUrl()
 {
     return myBlockedEmailUtils::createBlockEmailUrl($this->getEmail());
 }