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 / naaz

There is no way of sending an email with javascript alone.
Your only possible option is to use a server-side script
(PHP, Perl, ASP) to email the form results to you.
To be more specific, your <FORM> line would look something
like this:

<form method=yest action=myscript.cgi>

The file "myscript.cgi" is a Perl or PHP program you wrote
and uploaded to the server. That program displays the
results to the user and then emails you the results.

It's just a misleading point to say u can still send an
email thru javascript (mailto:) plz understand that it
only opens a client side email program but doesnt send an y
email you wud definitely need a server side language to
send an email

cheerss

Is This Answer Correct ?    99 Yes 30 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to connect to mysql from a php script?

1064


How to return a value back to the function caller?

1034


Can I learn php without knowing c?

1011


Why should I store logs in a database rather than a file?

1030


Which one is best framework for php?

988


What are the file upload settings in configuration file?

1041


Define metaphone()?

8714


What are hooks in php?

958


What is config file in php?

1026


What is php oops concepts?

1022


Differentiate between php5 and php7?

1084


What are the three parts of an http request?

987


Should I use mysqli or pdo?

957


What does trim () do in javascript?

1036


How to check a key exist in an array?

1092