]]jkjjgdjffksdkdxdsghfghdfghfgdfsdsdfsdfsfdsbcxvxcbccwewqeqwewqskfgj
במ12[cxvbcxvbxcvbcxvcxvbcvxcvbsdfsdfsdfsdfsdfsdfxcvbxcvxbbxqwqewqewv;'
/
home
/
u506006416
/
domains
/
crystalmiracle.co.in
/
public_html
/
admin
/
Upload FileeE
HOME
<?php include("header.php"); include_once('../php_mail/class.phpmailer.php'); $sel_obj= new config(); if(isset($_POST['submit'])) { // print_r($_POST); $status=$sel_obj->validation($_POST['status']); $desc=$sel_obj->validation($_POST['desc']); $order_id=$sel_obj->validation($_POST['order_id']); $notify=$sel_obj->validation($_POST['notify']); $uemail=$sel_obj->validation($_POST['email']); $number=$sel_obj->validation($_POST['number']); $customer_name=$sel_obj->validation($_POST['customer_name']); $udate_date=date('d/m/Y'); $update = array( 'order_status' => $status, ); $update_date = array( 'order_status_date' => $udate_date, ); $where_condition=array( 'order_id'=> $order_id ); $update_date=$sel_obj->update("orders",$update_date,$where_condition); $updatequery=$sel_obj->update("orders",$update,$where_condition); if($updatequery==true) { $sel_obj->order_status_sms_api($number,$customer_name,$order_id,$status); if($notify=='1') { $mail = new PHPMailer; $message ='<h3>Dear '.$uemail.'</h3>'; $message .='<h3>Your Order id : '.$order_id.' has been '.$status.' </h3>'; $message .='<h3>Message From admin : '.html_entity_decode($desc).' </h3>'; $mail = new PHPMailer; // $mail->IsSMTP(); //Sets Mailer to send message using SMTP $mail->Host = "smtp.gmail.com"; //Sets the SMTP hosts of your Email hosting, this for Godaddy $mail->SMTPAuth = true; //Sets SMTP authentication. Utilizes the Username and Password variables $mail->Port = '465'; //Sets the default SMTP server port $mail->Username = "rohanchabra65@gmail.com"; //Sets SMTP username $mail->Password = "Mastermaster@1879"; //Sets SMTP password $mail->SMTPSecure = 'tls'; //Sets connection prefix. Options are "", "ssl" or "tls" $mail->From = "sales@a4paper.in"; //Sets the From email address for the message $mail->FromName = "a4paper"; //Sets the From name of the message $mail->AddAddress($uemail); $mail->WordWrap = 50; //Sets word wrapping on the body of the message to a given number of characters $mail->IsHTML(true); //Sets message type to HTML //$mail->AddAttachment($path); //Adds an attachment from a path on the filesystem $mail->Subject = "Order Status"; //Sets the Subject of the message $mail->Body = $message; //An HTML or plain text message body if($mail->Send()) //Send an Email. Return true on success or false on error { echo "<script>alert('Order status changed');</script>"; echo "<script>window.location.href='all_orders.php'</script>"; } } else { echo "<script>alert('error');</script>"; echo "<script>window.location.href='all_orders.php'</script>"; } } else { echo 0; } } ?>