/
home
/
u361092003
/
domains
/
intellectualacademy.in
/
public_html
/
Upload FileeE
HOME
<?php require 'vendor/autoload.php'; $name = $_POST["name"]; $phone = $_POST["phone"]; $selectstream = $_POST["select-stream"]; $email = $_POST["email"]; $Message = $_POST["message"]; $mail = new PHPMailer(true); try { $mail->SMTPDebug = 0; $mail->isSMTP(); $mail->Host = 'smtp.gmail.com'; $mail->SMTPAuth = true; $mail->Username = 'rajan@accunityservices.com'; $mail->Password = "jxauvywfnmadopdf"; $mail->SMTPSecure = 'ssl'; $mail->Port = 465; $mail->setFrom('rajan@accunityservices.com', 'Contact Form'); $mail->addAddress('rajan@accunityservices.com', 'Contact Form'); $mail->isHTML(true); $mail->Subject = "Contact Form"; $mail->Body = 'Name : ' . $_POST['name'] . "<br/><br/>" . 'Mobile : ' . $_POST['phone'] . "<br/><br/>" . 'Select-Stream : ' . $_POST['select-stream'] . "<br/><br/>" . 'Email : ' . $_POST['email'] . "<br/><br/>" . 'Message : ' . $_POST['message'] . "<br/><br/>"; $mail->AltBody = 'Body in plain text for non-HTML mail clients'; $mail->send(); if (!$mail) { echo "Mailer Error: " . $mail->ErrorInfo; } else { header("Location:index.html"); } } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } ?>