hjkhghtjhjjhjhjhjhjjhjhjjhrrtrtoirh
bnmbertsurrttrtrtrtrjhjhjjhjhhjhjhjhf'tdfg
/
home
/
u506006416
/
public_html
/
public_html
/
clients_portal
/
Upload FileeE
HOME
<?php header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Methods: POST, GET, OPTIONS'); use PHPMailer\PHPMailer\PHPMailer; require 'vendor/autoload.php'; if(isset($_REQUEST)){ sendEmail($_REQUEST); } function sendEmail($emailData){ $reciverEmail = $emailData['reciverEmail']; $ccEmail = $emailData['ccEmail']; $sendrUserName = $emailData['sendrUserName']; $senderUserPassword = $emailData['senderUserPassword']; $subject = $emailData['subject']; $message = $emailData['message']; $bccemail = $emailData['bccemail']; $FromEmail = $emailData['FromEmail']; $mail = new PHPMailer(); $mail->isSMTP(); $mail->Host = gethostname(); $mail->SMTPAuth = true; $mail->Username = $sendrUserName; $mail->Password = $senderUserPassword; $mail->setFrom($FromEmail, 'Infinikey Media Enquiry'); $mail->addCC($ccEmail); $mail->addBCC($bccemail); $mail->addAddress($reciverEmail); $mail->Subject = $subject; $mail->IsHTML(true); $mail->Body = $message; $mail->send(); } ?>