| Current Path : /home2/wtmwscom/public_html/js/ |
| Current File : /home2/wtmwscom/public_html/js/send_email.php |
<?php
if (isset($_REQUEST['email'])) {
//Email information
$admin_email = "info@bestlifeonline.in";
$name = $_REQUEST['first_name'];
$email = $_REQUEST['email'];
$message = $_REQUEST['message'];
//send email
if (mail($admin_email, $name, $message, "From:" . $email)) {
echo 1;
}
else {
echo 0;
}
}
?>