title: Stuck with form and sending email to input email
body: <p>Hi i'm new to stack and programming, so i have a node project that when i run the server it calls the mandrill api and sends my email template to a hardcoded email, all i want to know is how do i get the email value from a form input field send it to server .js or wherever and send my template to that email</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="input-group emailInput emailInput2"&gt;
    &lt;form method="post" action="/send-email/invoiceEmail"&gt;
      &lt;input type="email" class="form-control input1 target" id="emailAddress" name="email" placeholder="Email Address"&gt;
      &lt;span class="input-group-btn"&gt;
     &lt;button id="emailAddress2" class="btn btn-secondary input2 emailbtn2 other" type="button" onclick ="validate()"&gt;
          &lt;div class="emailbtn"&gt;&gt;&lt;/div&gt;
        &lt;/button&gt;
   &lt;/span&gt;
    &lt;/form&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>app.post("/send-email/invoiceEmail", function (req, res) {
   var x = document.getElementById("emailAddress");
   console.log(req.body.email);
  
   var email = "mail@mail.com";
   emailService.sendInvoiceEmail(email,function(data){
    res.send("success");
   },
   function(error){
    console.log(error);
   })
  });</code></pre>
  </div>
  </div>
  </p>