hjkhjkjhkhjkgjghjhgjhgjghjhghjghjhgjjnbvnvbnvk
bnmbnmbnhjkhjkhjkhjktyutyutyuytutyutyutyhgjgjghjgjghjguytutyry
/
home
/
anandaob
/
public_html
/
Upload FileeE
HOME
<?php use PHPMailer\PHPMailer\PHPMailer; if (isset($_POST['fname']) && isset($_POST['lname']) && isset($_POST['email'])) { $fname = $_POST['fname']; $lname = $_POST['lname']; $email = $_POST['email']; $subject = $_POST['subject']; $comment = $_POST['comment']; require_once "PHPMailer/PHPMailer.php"; require_once "PHPMailer/SMTP.php"; require_once "PHPMailer/Exception.php"; $mail = new PHPMailer(); //SMTP Settings $mail->isSMTP(); $mail->Host = "mail.anandaobauae.org"; $mail->SMTPAuth = true; $mail->Username = "contact@anandaobauae.org"; //enter you email address $mail->Password = 'n33(qeMuVmDG'; //enter you email password $mail->Port = 465; $mail->SMTPSecure = "ssl"; //Email Settings $mail->isHTML(true); $mail->setFrom($email, $fname); $mail->addAddress("contact@anandaobauae.org"); //enter you email address $mail->Subject = ("$email ($subject)"); $mail->Body = ("name : $fname $lname <br> email : $email <br> comment : $comment"); if ($mail->send()) { $status = "success"; $response = "Email is sent!"; } else { $status = "failed"; $response = "Something is wrong: <br><br>" . $mail->ErrorInfo; } exit(json_encode(array("status" => $status, "response" => $response))); } ?>