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 you end a session in php?
Name some of the functions in php.
Where are php configuration settings stored?
What is the method to register a variable into a session?
What the difference between the 'bitwise and' operator and the 'logical and' operator?
What is the difference between htmlentities and htmlspecialchars in php?
How to calculate the difference between two dates using php?
How many types of inheritances used in php and how we achieve it.
What does the function get_magic_quotes_gpc() means?
How do I run a php program in dreamweaver?
What is substr() in php? And how it is used?
How to track user logged out or not? When user is idle?
How to execute an sql query?
Where php language is used?
What is php routing?