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 cookie and session in php?

517


Which is the best php framework for a beginner?

533


What is default session time and path in PHP. How to change it?

553


Why php 7 is faster?

520


Explain the casts allowed in PHP?

593






How to write in a file in php?

543


What does the unlink() function means?

554


What are the php functions?

558


What does sign mean php?

569


What are php errors?

501


What is php artisan serve?

525


What is the function mysql_pconnect() usefull for?

553


Is server side a session?

500


Explain what are the different errors in php?

559


Tell us what is the difference between session_unregister() and session_unset()?

564