title: Email a HTML table
body: <p>I am a new to web development. I have a dynamic HTML table generated using jQuery. I want to mail the table on a button click. I was able to read the table using JavaScript but I am struck after that. I don't know how to email this using PHP ( mailto ) function.</p>
  
  <p>Button code:</p>
  
  <pre><code>&lt;button name="doModify" onclick="OQ()"&gt;Mail&lt;/button&gt; 
  </code></pre>
  
  <p>Javascript:</p>
  
  <pre><code> function mail_content()    
   {    
     var tableContent = document.getElementById("cartcontent").innerHTML;    
     var mBody = "&lt;html&gt;&lt;body&gt;&lt;table&gt;" + tableContent + "&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;";    
     alert(mBody);    
   }
  </code></pre>
  
  <p>How to mail the string that I constructed in Javascript. </p>