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 do I expire a php session after 30 minutes?
Tell me what is the actually used php version?
What is the difference between for and foreach?
What is php and what does it do?
What are the advantages of php mysql?
How to get best php developer Experience in Php with Sugar CRM / VTiger.
What is scope of variable in php?
What are the functions used in php?
How you can update memcached when you make changes to php?
What is difference between rest and http?
What is the role of php?
What is PECL?
Do you know how to get the ip address of the client?
How we can get the number of elements in an array?
Define metaphone()?