Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Where is php code written?

995


What is final keyword in php?

1043


How is a constant defined in a PHP script?

1035


Why did you choose this particular career path?

8801


Tell me can the value of a constant change during the script's execution?

1296


What is the purpose of the php empty function?

966


What is factory pattern in php?

928


Do you know what is the differences between $a != $B and $a !== $B?

1003


What are php parameters?

1007


how retrive the video file in php using video tag

1755


Tell us how can we display the output directly to the browser?

1036


Explain how can we increase the execution time of a php script?

1005


Can we run php on tomcat server?

1051


What can php do?

1018


Do you know what is the use of the function 'imagetypes()'?

994