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
What are major variables in research?
Where php basically used?
How can you tell if a number is even or odd without using any condition or loop?
What is the use of dual table in mysql?
What is meant by an associative array?
Explain the ternary conditional operator in php?
What is the difference between the functions strstr() and stristr()?
What is the purpose of the following files having extensions: frm, myd, and myi? What these files contain?
Tell me how can we determine whether a php variable is an instantiated object of a certain class?
What does a special set of tags do in php?
How can we submit form without a submit button?
Php code to find whether a number armstrong or not?
What is implode() in php?
How is session id stored in browser?
What is the difference between apache and tomcat?