HOW CAN WE SEND MAIL USING JAVASCRIPT?

Sanjay Sharma

Total Post:42

Points:210
Posted by  Sanjay Sharma
 1644  View(s)
Ratings:
Rate this:
  1. Sanjay Sharma

    Post:42

    Points:210
    How 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;
    }

      Modified On Mar-11-2016 06:00:19 AM

Answer

NEWSLETTER

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