How can we send mail using JavaScript?
2735
18-Mar-2011
Updated on 21-Sep-2020
Anonymous User
18-Mar-2011But you can use JavaScript to execute a client side email program send the email using the "mailto" code. Here is an example:
function functioname(form) { tdata=document.myform.tbox1.value; location="mailto:emailid@domain.com?subject=..."; return true; }