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

Is php case sensitive?

520


Why should I learn php?

519


What is the difference between super () and this ()?

555


Where are cookies stored php?

509


What are the environmental variables?

584






How to assigning a new character in a string?

580


What is a helper function?

551


How do I run php?

536


What is helper library?

516


How to swap two variables without using 3rd temp variable.

499


Code to open file download dialog in PHP?

554


What the difference between the 'bitwise and' operator and the 'logical and' operator?

525


Write a program to show the joining of two strings in php?

529


What are the advantages of stored procedures, triggers, indexes in php?

510


Explain Type hinting in PHP?

567