customer_logged()) { redirect('index.php'); } if (is_set(@$_POST['login'])) { $login = trimstr($_POST['login'], 255); try { $id = $customer->isLoginExists($login); if (!$id) { throw new Exception(CUSTOMER_LOGIN_NOT_FOUND); } $customer_name = $customer->getCustomerName($id); $message_body = 'Customer %CUSTOMER_NAME% (login: %LOGIN%) has sent request for resetting his password.'; $message_alt_body = 'Customer %CUSTOMER_NAME% (login: %LOGIN%) has sent request for resetting his password.'; $message_body = str_replace('%LOGIN%', $login, $message_body); $message_body = str_replace('%CUSTOMER_NAME%', $customer_name, $message_body); $message_alt_body = str_replace('%LOGIN%', $login, $message_alt_body); $message_alt_body = str_replace('%CUSTOMER_NAME%', $customer_name, $message_alt_body); $php_mailer = new PHPMailer(); $php_mailer->FromName = 'Sunray Notice'; $php_mailer->From = 'sunray@sunraynotice.com'; $php_mailer->Subject = 'Password reset'; $php_mailer->AltBody = $message_alt_body; $php_mailer->MsgHTML($message_body); // $php_mailer->AddAddress('manager@sunraynotice.com', 'Sunray Manager'); $php_mailer->AddAddress('laura@sunraynotice.com', 'Sunray Manager'); $php_mailer->Send(); $mode = 'sent'; $session->password_sent = TRUE; redirect($_SERVER['PHP_SELF']); } catch(Exception $e) { $page_error = $e->getMessage(); } } require "../inc/customer/templates/ento_header.php"; if (is_set($session->password_sent)) { ?>

Request for resetting password was sent to the manager of the system


Click here to proceed to login page
password_sent); } else { ?>



Enter your site login: