1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31:
<?php
function message_register_success($obj) {
$obj->set('user_mail', $_POST['mail_new']);
$obj->set('user_name', $_POST['name_new']);
$obj->set('user_login', $_POST['login_new']);
$obj->set('user_password', $_POST['password_new']);
$admin_mail = $obj->PHPShopSystem->getParam('adminmail2');
$title = $obj->lang('activation_title') . " " . $_POST['name_new'];
$PHPShopMail = new PHPShopMail($_POST['mail_new'], $admin_mail, $title, $content, true, true);
$content = ParseTemplateReturn('./phpshop/lib/templates/users/mail_user_register_success.tpl', true);
$PHPShopMail->sendMailNow($content);
}
?>