adspace
How can we send mail using JavaScript?
Answer Posted / ramesh
At jsscript tag
function sendmail(_frm)
{
var eml="you@youraddress.com";
var bod="&body="+_frm.selOne.value+" ¦¦ "+_frm.txtOne.value;
var subj="?subject=Whatever you want";
location.href="mailto:"+eml+subj+bod;
}
At Form tag
<form action="mailto:you@youraddress.com"
enctype="text/plain"
method="POST" onsubmit="sendmail(this);return false;">
| Is This Answer Correct ? | 28 Yes | 30 No |
Post New Answer View All Answers
how to detect a mobile device using php
Which variable declarations within a class is invalid in php?
Write a program using while loop?
How to create a web form?
hello all, I need some sample placement papers in lion bridge.. can anyone help me?
Tell me what kind of things have you done on the social side?
What sized websites have you worked on in the past?
What is the current stable version of php?
What does $_files means?
What is the current stable version of php? What advance thing in php7?
What is difference between static and final in php?
How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain
List some features of php that are deprecated in php7?
What is trait in php?
sort term descripttion form, report and uery