title: Add a link to a local file to email using mailto Javascript
body: <p>I need to pass data from one html form to another through email. I'm having some issues inserting a link to a local file. Once the outlook client opens, the link is not formatted correctly and is not a hyperlink. This is my send() function from my form</p>
  
  <pre><code>function send() 
  {
      var name = document.getElementById('Fname').value;
      var company = document.getElementById('company').value;
      var email = document.getElementById('email').value;
      var str = "Link to IT Web Report"
      var linkToReport = str.link('S:\IT\Applications\Aleds Work\Guest WIFI access\ITTaskWebReport.html?name='+name+'&amp;company='+company+'&amp;email='+email);
      var link = 'mailto:FHCNetAlert@fhc.co.uk?subject= Guest WIFI request'
               +'&amp;body=A request for guest WIFI access was made. Details:- %0D%0A'
               +'%0D%0A Name: '+document.getElementById('Fname').value +
               '%0D%0A Company: '+document.getElementById('company').value +
               '%0D%0A Email: '+document.getElementById('email').value +
               '%0D%0A' +linkToReport;
      window.location.href = link;
  }
  </code></pre>
  
  <p>This is how this link appears in Microsoft outlook - </p>
  
  <pre><code>&lt;a href="S:ITApplicationsAleds WorkGuest WIFI accessITTaskWebReport.html?name=Aled Hughes 
  </code></pre>
  
  <p>As you can see, its not the right format, its not a link, and its missing the company variable and also the email variable. Any help out there?</p>