Home > DeveloperSection > Forums > can we send mail using JavaScript?
Dependra Pathak
Dependra Pathak

Total Post:2

Points:14
Posted on    March-29-2011 6:53 AM

 JavaScript JavaScript 
Ratings:


 1 Reply(s)
 1782  View(s)
Rate this:
I want to make simple web application using html and javascript for mailing system
but i need
how can we send mail using javascript?
what will be the answer of its?


Amit Singh

Total Post:103

Points:721
Posted on    March-29-2011 7:35 AM

No. There is no way to send emails directly using JavaScript.

But 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;
}

Don't want to miss updates? Please click the below button!

Follow MindStick