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
Explain soundex() and metaphone().
What is cookie and session in php?
Is php front end or back end?
What is the use of header in php?
What is string function sql?
Code to upload a file in PHP?
How to get the total number of values in an array?
Is time a dependent variable?
What is the difference between $argv and $argc? Give example?
Can we use php variable in javascript?
What is local variable in php?
Can you specify the "new line" character in single-quoted strings?
Explain about PHP filter and why it should be used?
What u mean by query?
What is html used for?