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 action hook and filter hook?
How can you declare the array in php?
How you can update memcached when you make changes to php?
What is the difference between pop3 IMAP and MAPI?
What is difference between include and include_once in php?
How to remove leading and trailing spaces from user input values in php?
What is composer install?
Do you know what are traits?
What is the purpose of php?
What's the difference between using mysql_ functions and pdo?
What beforeFilter() is used?
Why do you need php?
How the result set of mysql be handled in php?
What is ci framework in php?
what are the differences between php and perl