Contact Us

SMTPDebug = 0; // Enable verbose debug output $mail->isSMTP(); // Set mailer to use SMTP $mail->Host = 'smtp.gmail.com'; // Specify main and backup SMTP servers $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username = EMAIL; // SMTP username $mail->Password = PASS; // SMTP password $mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted $mail->Port = 587; // TCP port to connect to $mail->setFrom(EMAIL, 'Rajdhani Restaurant'); $mail->addAddress($_POST['Email']); // Add a recipient $mail->addReplyTo(EMAIL); $mail->isHTML(true); // Set email format to HTML $mail->Subject = $_POST['comment']; $mail->Body = 'Thanks For Comment'; $mail->AltBody = 'This is the body in plain text for non-HTML mail clients'; if(!$mail->send()) { echo 'Message could not be sent.'; echo 'Mailer Error: ' . $mail->ErrorInfo; } else { echo 'Message has been sent'; } ?>
  First Name:
  Last Name:
  Phone no.:
  Email Id:
  Address:
  Comments: