hjkhghtjhjjhjhjhjhjjhjhjjhrrtrtoirh
bnmbertsurrttrtrtrtrjhjhjjhjhhjhjhjhf'tdfg
/
home
/
u506006416
/
public_html
/
public_html
/
clients_portal
/
Upload FileeE
HOME
<?php file_put_contents(__FILE__."report.txt",date("d-M-Y H:i:s")); include("lib/mail-2.php"); header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Methods: POST, GET, OPTIONS'); use PHPMailer\PHPMailer\PHPMailer; require 'vendor/autoload.php'; $resultRep = $user->selectByCondition('sendreport','status',1); if(count($resultRep) > 0){ $report = $resultRep[0]; sendEmail($report); $data = array("status"=>0,"emaildata"=>"<p>Working On -<strong>"); $add_data = $user->updateQuery('sendreport',$data,'id',1); } function sendEmail($emailData){ $reciverEmail = 'info@infinikeymedia.com'; $ccEmail = 'infinikeymedia@gmail.com'; $sendrUserName = $emailData['senderemail']; $senderUserPassword = $emailData['password']; $subject = "Today Work Report - ".date("d-M-Y"); $message = $emailData['emaildata']; $bccemail = 'rajsinghw21@gmail.com'; $mail = new PHPMailer(); $mail->isSMTP(); $mail->Host = gethostname(); $mail->SMTPAuth = true; $mail->Username = $sendrUserName; $mail->Password = $senderUserPassword; $mail->setFrom($sendrUserName, 'Work Report'); $mail->addCC($ccEmail); $mail->addBCC($bccemail); $mail->addAddress($reciverEmail); $mail->Subject = $subject; $mail->IsHTML(true); $mail->Body = $message; $mail->send(); } ?>