jakForgotpassword($email, $fwhen); if ($user_check == true) { // Include the mail library include_once APP_PATH.'class/PHPMailerAutoload.php'; // Import the language file include_once(APP_PATH.JAK_OPERATOR_LOC.'/lang/'.JAK_LANG.'.php'); // Get user details $oname = $jakdb->get("user", "name", ["AND" => ["email" => $email, "access" => 1]]); if (jak_send_email($email, "", "", JAK_TITLE.' - '.$jkl['l13'], sprintf($jkl['l14'], $oname, ''.JAK_rewrite::jakParseurl('forgot-password', $fwhen).'', JAK_TITLE), "")) { die(json_encode(array('status' => true))); } } else { die(json_encode(array('status' => false, 'errorcode' => 6))); } } die(json_encode(array('status' => false, 'errorcode' => 5))); ?>