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 some most commonly use string functions in php?
what is the current salary package in India for a PHP programmer who has 1.5 years experience
What is session in c#?
How to call php function in jquery?
How to get ip address of clients machine?
What is php default argument?
In php how can you jump in to and out of "php mode"?
Explain some of the php string functions?
Is laravel frontend or backend?
List some array functions in php?
How to calculate the difference between two dates using php?
how to detect a mobile device using php
what are the differences between php and perl
Are sessions stateless?
What are php applications?