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
What is php explain?
What are the environmental variables?
What does mvc stand for and what does each component do?
Does php use html?
What are php data types?
List functions available to sort an php array?
What does csrf token mean?
What is the function of mysql_real_escape_string in php?
What is member function?
How failures in execution are handled with include() and require() functions?
What is a stored procedure in mysql?
What is the empty function?
What are the different types of php variables?
Do while loops php?
What is use of echo in php?