How to send an email automatically to the submitted form email using Javascript ?
Here is the HTML code : <form id="form" action="index.php" method="POST"> <div class="nometprenom"> <div class="uinput"> <input type="text" id="nm" class="inp" name="nom" required autocomplete="off" placeholder="Nom"/> </div> <div class="uinput"> <input type="text" id="prnm" class="inp" name="prenom" required autocomplete="off" placeholder="Prénom"/> </div> </div> <div class="uinput"> <input type="email" class="inp" name="email" required autocomplete="off" placeholder="E-mail"/> </div> <div class="uinput"> <input type="text" class="inp" name="promotion" required autocomplete="off" placeholder="Promotion"/> </div> <button type="submit" class="submit">Générer</button> </form> What I want to happen : When the client tap the submit button, an email will be sent automatically to the email submitted in the HTML form. Thanks.