title: Html and Javascript send email with text element
body: <p>I have a form on sharepoint, that whenever a person fills that form, it will create a new page with the text added on the form.
  I wanted to send an email using JavaScript and HTML with the copy of the various texts.
  I have the id of the text and when i create the javascript code, it does not work. </p>
  
  <p>HTML    </p>
  
  <pre><code>&lt;a onclick="javascript:sendEmailJobs()" class="mailto"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>JavaScript</p>
  
  <pre><code>function sendEmailJobs(){
      var JobCodePost = document.getElementById("RichHtmlFieldJobPostCodeJob").body;
      window.location.href = "mailto:?subject=Job Offer &amp;body=" + body;
  }
  </code></pre>
  
  <p>The id of said text is this:</p>
  
  <pre><code>&lt;SharepointWebControls:NoteField ID="RichHtmlFieldJobPostCodeJob" FieldName="JobPostCode" runat="server"/&gt;
  </code></pre>
  
  <p>Am i doing something wrong? </p>