function forgetPassword()
{
    //die('test');
    $rm = new Response_Methods();
    if ($_SERVER['REQUEST_METHOD'] == "GET") {
        $result = $rm->inValidServerMethod();
        return $result;
    }
    //Check request url is https or not
    if (!empty($_SERVER["HTTPS"])) {
        if ($_SERVER["HTTPS"] !== "off") {
            $EMAILID = $rm->cleanData(trim($_POST['emailId']));
            if ($EMAILID == "") {
                $result = $rm->fields_validation();
                return $result;
            } else {
                $checkEmail = $rm->checkUNEmail($EMAILID);
                if ($checkEmail['status'] == false) {
                    $result = $rm->emailNotAvailable();
                    return $result;
                } else {
                    //print_r($checkEmail);
                    //die();
                    $result = $rm->sendPasswordEmail($checkEmail['user_id']);
                    return $result;
                }
            }
        } else {
            $result = $rm->ssl_error();
            return $result;
        }
    } else {
        $result = $rm->ssl_error();
        return $result;
    }
}