How can we send mail using JavaScript?

Answer Posted / sajeer

<?
extract($_GET);
extract($_POST);

$txtname=stripslashes($T1);
$msg="CONTACT US INFORMATION\n\n";
$msg.="Subject : $T4\n";
$msg.="From : $T1\n";
$msg.="Email : $T2\n";


if($T3!="")
$msg.="Phone : $T3\n\n";
$txt=stripslashes($S1);
if($S1!="")
$msg.="Comments : $txt";


@mail("sajeerm@yahoo.com","Contact Query from
$T1 ","$msg","From:admin@sajeer.com");


?>

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between session_unset and session_destroy?

599


Tell me how to create a session? How to set a value in session? How to remove data from a session?

589


Tell me what is the difference between unset() and unlink()?

620


What is cookie and why do we use it?

616


Php says that an array is an ordered map. But how the values are ordered in an array?

683






When viewing an html page in a browser, the browser often keeps this page in its cache. What can be possible advantages/disadvantages of page caching? How can you prevent caching of a certain page (please give several alternate solutions)?

648


How to create a session? How to set a value in session?

609


How to get the position of the character in a string in php?

702


What is the difference between html and php?

624


Explain the types of functions for Splitting String?

642


What is the use of mysql_fetch_assoc in php?

585


Which is a perfect example of runtime polymorphism?

608


How does cookies work in php?

603


What are getters and setters php?

630


why did u want to leave your past organisation?

1721