Ejemplo n.º 1
0
 public function notifyContacts($isNotNew)
 {
     $subject = intval($isNotNew) ? "Project Updated: {$this->project_name} " : "Project Submitted: {$this->project_name} ";
     $users = CProject::getContacts($this->_AppUI, $this->project_id);
     if (count($users)) {
         $emailManager = new w2p_Output_EmailManager($this->_AppUI);
         $body = $emailManager->getProjectNotify($this, $isNotNew);
         foreach ($users as $row) {
             $mail = new w2p_Utilities_Mail();
             $mail->To($row['contact_email'], true);
             $mail->Subject($subject);
             $mail->Body($body, isset($GLOBALS['locale_char_set']) ? $GLOBALS['locale_char_set'] : '');
             $mail->Send();
         }
     }
     return '';
 }