Esempio n. 1
0
 public function notify()
 {
     global $AppUI, $w2Pconfig, $locale_char_set;
     $df = $AppUI->getPref('SHDATEFORMAT');
     $df .= ' ' . $AppUI->getPref('TIMEFORMAT');
     $mail = new w2p_Utilities_Mail();
     $mail->Subject('Hello', $locale_char_set);
     if ($this->contact_email) {
         $emailManager = new w2p_Output_EmailManager();
         $body = $emailManager->getContactUpdateNotify($AppUI, $this);
         $mail->Body($body, isset($GLOBALS['locale_char_set']) ? $GLOBALS['locale_char_set'] : '');
     }
     if ($mail->ValidEmail($this->contact_email)) {
         $mail->To($this->contact_email, true);
         $mail->Send();
     }
     return '';
 }
Esempio n. 2
0
 public function notify()
 {
     $emailManager = new w2p_Output_EmailManager($this->_AppUI);
     $body = $emailManager->getContactUpdateNotify(null, $this);
     $mail = new w2p_Utilities_Mail();
     $mail->To($this->contact_email, true);
     $mail->Subject('Hello');
     $mail->Body($body, isset($GLOBALS['locale_char_set']) ? $GLOBALS['locale_char_set'] : '');
     return $mail->Send();
 }