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 difference between isset and empty in php?
What is the difference between $message and $$message in php?
How do you count numbers in php?
what is the use of include_once in php?
How can php and javascript interact?
Do you know what does $globals means?
What is isset post?
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what is the problem?
How do I display php errors?
Is php a framework?
List types of array are available in php?
What is use of header() function in php?
Explain what is the function file_get_contents() usefull for?
What are escaping characters? Explain with an example?
What is the difference between "echo" and "print" in php?