Exemple #1
0
 /**
  * Приглашение на банкет 2009 от сервиса.
  *
  * @deprecated
  */
 public function BD2009()
 {
     return;
     require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/birthday.php';
     require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/messages.php';
     $bd = new birthday(2009);
     $users = $bd->getAll(false);
     $this->subject = '';
     $smtp = 0;
     $admin_id = users::GetUid($error, 'admin');
     foreach ($users as $ikey => $user) {
         if (!$user['email']) {
             continue;
         }
         $email_msg = '';
         $lichka_msg = '';
         $this->recipient = $user['uname'] . ' ' . $user['usurname'] . ' [' . $user['login'] . '] <' . $user['email'] . '>';
         $this->message = self::GetHtml($user['uname'], $email_msg);
         // если приветствия не надо, то добавить 3-й параметр: array('header'=>'no', 'footer'=>'no'));
         $smtp = $this->SmtpMail(false, $smtp, 'text/html');
         $error = messages::Add($admin_id, $user['login'], $lichka_msg, '');
     }
     self::SmtpClose($smtp);
 }