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
How to connect to mysql from a php script?
How to return a value back to the function caller?
Can I learn php without knowing c?
Why should I store logs in a database rather than a file?
Which one is best framework for php?
What are the file upload settings in configuration file?
Define metaphone()?
What are hooks in php?
What is config file in php?
What is php oops concepts?
Differentiate between php5 and php7?
What are the three parts of an http request?
Should I use mysqli or pdo?
What does trim () do in javascript?
How to check a key exist in an array?