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.
Button code:
<button name="doModify" onclick="OQ()">Mail</button>
Javascript:
function mail_content()
{
var tableContent = document.getElementById("cartcontent").innerHTML;
var mBody = "<html><body><table>" + tableContent + "</table></body></html>";
alert(mBody);
}
How to mail the string that I constructed in Javascript.
in mail.php