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
Why echo is faster than print in php?
What are the differences between GET and POST methods?
Write a program to display a table of any given number?
Is it possible multiple inheritance in php?
Tell me what does pear stands for?
What are the new features in php 7?
How to protect special characters in query string?
What does php mean?
What are the advantages of stored procedures in php?
How do I install php?
What is string function sql?
Can php run on windows server?
What is a controller in php?
How we get browser details of clients machine?
What are default session time and path?