I wanted to know how to send e-mail using javascript. I dont want to use long functions with tag n all other stuff. Interested in only one/two liner statement which will allow me to send mail.
I have used something like that earlier :
function sendmail(_frm)
{
var eml="[email protected]";
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:[email protected]"
enctype="text/plain"
method="POST" onsubmit="sendmail(this);return false;">
I dont want to use above approach to send mail...
Please provide me your suggestion so that i can send mail very easily by using javascript , like below. e.g.
function sendmail () {
location.href="mailto:<other stuff>"
}
Is anyone has any idea about this, please share their ideas here.
Thanks a lot....