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 is the difference between runtime exception and compile time exception?
Explain me what are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()?
What is scope of variable in php?
What is php full form?
List some array functions in php?
What does the array operator '===' means?
How to return ascii value of character in php?
Can we use php variable in javascript?
How come the code works, but doesn’t for two-dimensional array of mine?
What is the use of token in php?
What is factory pattern in php?
What is final class and final method in php?
Are php session secure?
Can we extend two classes in php?
How do you end a function in python?