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

How do you end a session in php?

1076


Which variable declarations within a class is invalid in php?

964


Is echo a function in php?

987


What is the function file_get_contents() useful for?

932


What is the use of strip_tags() method?

931


How would you determine the size of a file in php?

1041


How cookies are transported from browsers to servers?

948


Explain php explode() function.

1037


How to specify argument default values?

971


What is a php class?

1046


What is the difference between associative array and indexed array?

1072


What is the difference between laravel and php?

917


Tell me how can we connect to a mysql database from a php script?

961


Why die is used in php?

986


How many data types are used by php?

977