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


Please Help Members By Posting Answers For Below Questions

Why do we use hooks?

509


How can I display text with a php script?

484


What is the integer?

583


Explain me what is x+ mode in fopen() used for?

547


How to create a web form?

556






What is meant by variable variables in php?

533


What is $_ env in php?

549


Does php 7 support mysql?

566


Tell me how can we determine whether a php variable is an instantiated object of a certain class?

562


Is java is better than php?

553


What is the difference between php and javascript?

570


How to remove an empty directory?

582


How can you upload a file using php?

558


What is the role of php?

514


What is the Pipe Symbol represented?

630