File: /home/rtbrisc/.trash/index.php
<?php
require_once "phpmailer/class.phpmailer.php";
//To Handle Session Variables on This Page
session_start();
$name = $_POST['txtName'];
$email = $_POST['txtEmail'];
$unit = $_POST['txtUnit'];
$subject = $_POST['txtSubject'];
$message = $_POST['txtMessage'];
$origin = $_POST['txtOrigin'];
if ($origin == "request quote") {
$reciever = "briscoemail@rtbriscoe.com";
} else {
$reciever = "motors@rtbriscoe.com";
}
// $reciever = "mr.salaudeen.official@gmail.com.com";
// $message = '<html><head>
// <title>R.T. Briscoe</title>
// </head>
// <body>';
// $message .= '<h2> Hello R.T. Briscoe,</h2><br>';
// $message .= '<h2> My name is ' . $name .'!</h2><br>';
// $message .= '<h5>' . $email . '</h5><br>';
// $message .= '<h3>' . $message . '</h3><br>';
// $message .= "</body></html>";
// // php mailer code starts
// $mail = new PHPMailer(true);
// //$mail->IsSMTP(); // telling the class to use SMTP
// $mail->SMTPDebug = 0; // enables SMTP debug information (for testing)
// $mail->SMTPAuth = true; // enable SMTP authentication
// $mail->SMTPSecure = "ssl"; // sets the prefix to the servier
// $mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server
// $mail->Port = 465; // set the SMTP port for the GMAIL server
// $mail->Username = 'rtbriscoeng@gmail.com';
// $mail->Password = 'Chinwugo@1983';
// $mail->SetFrom('no-reply@rtbriscoe.com.com', 'R.T. Briscoe');
// $mail->AddAddress($reciever);
// $mail->Subject = trim($subject);
// $mail->MsgHTML($message);
// //$mail->send();
// if($mail->send()) {
// //echo "Success!!!";;
// // header("Location: ../");
// echo "Success";
// }else{
// // header("Location: ../");
// echo "Failed";
// //echo $mail->ErrorInfo;
// }
?>