CAN WE SEND MAIL USING JAVASCRIPT?

Dependra Pathak

Total Post:2

Points:14
Posted by  Dependra Pathak
 2078  View(s)
Ratings:
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?
  1. Amit Singh

    Post:103

    Points:721
    Re: can we send mail using JavaScript?

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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!