Send mail using javascript/////JQuery

Posted by Sabarimahesh under JavaScript on 4/10/2012 | Points: 10 | Views : 7644 | Status : [Member] | Replies : 2
I need Javascript Code for Send Maill

Or

Else

In

JQuery

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M



Responses

Posted by: Hariinakoti on: 4/10/2012 [Member] Starter | Points: 25

Up
0
Down
<html>

Hi , You can not send email directly using JavaScript.

But you can use JavaScript to execute a client side email program send the email using the "mailto" code.Plz check below example:



<head>
<title></title>

<script type="text/javascript">
function myfunction(form)
{
tdata=document.form1.text1.value;
location="mailto:abc@domain.com?subject=...";
return true;
}
</script>
</head>
<body>

<form action="#" name="form1">
<input type="text" name="text1">
<input type="submit" onClick="myfunction(this)">
</form>
</body>
</html>

Thanks & Regards
Hari

Sabarimahesh, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sabarimahesh on: 4/11/2012 [Member] Bronze | Points: 25

Up
0
Down
Hariinakoti
Thanks Man

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

Sabarimahesh, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response