- XDB::execute('INSERT INTO register_pending_xnet (uid, hruid, email, date, hash)
- VALUES ({?}, {?}, {?}, NOW(), {?})',
- $this->uid, $this->hruid, $this->email, $hash);
-
- $mailer = new PlMailer('xnet/account.mail.tpl');
- $mailer->addTo($this->email);
- $mailer->assign('hash', $hash);
- $mailer->assign('hruid', $this->hruid);
- $mailer->assign('group', $this->group);
- $mailer->assign('user', $this->user);
- $mailer->send();
+ XDB::execute('INSERT INTO register_pending_xnet (uid, hruid, email, date, hash, sender_name, group_name)
+ VALUES ({?}, {?}, {?}, NOW(), {?}, {?}, {?})',
+ $this->uid, $this->hruid, $this->email, $hash, $this->user->fullName(), $this->group);