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
Where is php code written?
What is final keyword in php?
How is a constant defined in a PHP script?
Why did you choose this particular career path?
Tell me can the value of a constant change during the script's execution?
What is the purpose of the php empty function?
What is factory pattern in php?
Do you know what is the differences between $a != $B and $a !== $B?
What are php parameters?
how retrive the video file in php using video tag
Tell us how can we display the output directly to the browser?
Explain how can we increase the execution time of a php script?
Can we run php on tomcat server?
What can php do?
Do you know what is the use of the function 'imagetypes()'?