|
Server IP : 2a02:4780:11:767:0:2c41:85d9:6 / Your IP : 216.73.217.25 Web Server : LiteSpeed System : Linux in-mum-web667.main-hosting.eu 5.14.0-570.62.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 10:10:59 EST 2025 x86_64 User : u742491609 ( 742491609) PHP Version : 8.1.34 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/u742491609/domains/../.cagefs/../.filebrowser/../domains/rpg.ac.in/public_html/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
if(isset($_POST['submit'])){
$name = $_POST['first_name'];
$lname = $_POST['last_name'];
$email= $_POST['email'];
$phone= $_POST['phone_number'];
$Subject= $_POST['subject'];
$message= $_POST['message'];
$to = "rajapoly@rpg.ac.in";
$subject = "Contact Form rpg.ac.in Enquiry";
$msg = "<html><body style='font-family:Arial,sans-serif;'>";
$msg .= "<div style='border:1px solid grey;'> <img src='' width='200px' style='background-color:skyblue;' > </div>
\r\n";
$msg .= "<div style='width:100%;height:75px;color:white;background-color:#ff1a56;text-align:center;padding-top:20px;'><h1> Rajagopal Polytechnic College </h1></div>\r\n";
$msg .= "<h2 style='font-weight:bold;border-bottom:1px dotted #ccc;'>GENERAL ENQUERIES</h2>\r\n";
$msg .= "<p style='text-transform:capitalize;'><strong> First Name :</strong>" . $name . "</p>\r\n";
$msg .= "<p style='text-transform:capitalize;'><strong> Last Name :</strong>" . $lname . "</p>\r\n";
$msg .= "<p style='text-transform:capitalize;'><strong> Phone Number :</strong>" . $phone . "</p>\r\n";
$msg .= "<p style='text-transform:capitalize;'><strong> Subject :</strong>" . $Subject . "</p>\r\n";
$msg .= "<p ><strong> Email :</strong>" . $email . "</p>\r\n";
$msg .= "<p style='text-transform:capitalize;'><strong> Message :</strong>" . $message. "</p>\r\n";
$msg .= "</div></div>";
$msg .= "<div style='background-color:#333;;text-align:center;text-decoration:none;color:#fff;width:100%; height:50px;padding-top:10px;'>
<p>© 2023-2024 <a href='' style='text-decoration:none;color:white;'><strong>Rajagopal Polytechnic College</strong>
<a href='http://redbackstudios.in' style='text-decoration:none;color:White;'>. Powered By Redback Studios</a></p></div>";
$msg .= "</body></html>";
$headers = "From: " . $email . "\r\n";
$headers .= "Reply-To: ".$email . "\r\n";
// Set content-type header for sending HTML email
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
if($email!=NULL){
$test= mail($to,$subject,$msg,$headers);
$subject1 = "Rajagopal Polytechnic College";
$msg1 = "<html><body style='font-family:Arial,sans-serif;'>";
$msg1 .= "<div style='border:1px solid grey;'> <img src='' width='200px' style='background-color:skyblue; >
<div style='float:right;'><a href=''><i class='fa fa-facebook' style='color:red'></i></a> </div>\r\n";
$msg1 .= "<div style='width:100%;height:75px;color:white;background-color:#ff1a56;text-align:center;padding-top:20px;'><h1> Rajagopal Polytechnic College</h1></div>\r\n";
// $msg1 .= "<h2 style='font-weight:bold;border-bottom:1px dotted #ccc;'>GENERAL ENQUERIES</h2>\r\n";
$msg1 .= "<p style='text-transform:capitalize;'>Thanks for contacting, Our consultant will review your details and respond to you shortly</p>\r\n";
$msg1 .= "</div></div>";
$msg1 .= "<div style='background-color:#333;;text-align:center;text-decoration:none;color:#fff;width:100%; height:50px;padding-top:10px;'>
<p>© 2023-2024 <a href='' style='text-decoration:none;color:white;'><strong>Rajagopal Polytechnic College</strong>
<a href='http://redbackstudios.in' style='text-decoration:none;color:White;'>. Powered By Redback Studios</a></p></div>";
$msg1 .= "</body></html>";
$headers1 = "From: " .$to . "\r\n";
$headers1 .= "Reply-To: ".$to . "\r\n";
// Set content-type header for sending HTML email
$headers1 .= "MIME-Version: 1.0" . "\r\n";
$headers1 .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$test1= mail($email,$subject1,$msg1,$headers1);
if($test1){
//redirect
echo ("<script language='javascript'> window.alert('Thank you, Our consultant will review your details and respond to you shortly.'); window.location.href='http://rpg.ac.in/index.php'; </script>");
}
else{
echo 'Mail not sent';
}
}
}
else{
echo 'error';
}
?>