Google
Edit File: enquiry.php
<?php if ($_SERVER['REQUEST_METHOD'] == "POST") { include "class.phpmailer.php"; // include the class name $email = $_POST["email"]; // $enquiry_Source = $_POST["enquiry_Source"]; //$project = $_POST["project"]; //echo "$email"; $mail = new PHPMailer(); // create a new object $mail->IsSMTP(); // enable SMTP $mail->SMTPDebug = 1; // debugging: 1 = errors and messages, 2 = messages only $mail->SMTPAuth = true; // authentication enabled $mail->Host = 'ssl://smtp.gmail.com'; $mail->Port = 465; // or 587 $mail->IsHTML(true); $mail->Username = "developers@code7tech.com"; $mail->Password = "ajaxonline"; //$mail->SMTPSecure = 'tls'; $mail->SetFrom("developers@code7tech.com"); $mail->Subject = "Newsletter Subscription"; $mail->Body = "<b>Newsletter Subscription:<b/><br><br />Email Id :- " . $email . "</b>"; //$mail->Body = '$email, $name, $phone, $subject, $message'; //$mail->AddAddress("sales@concretebuilders.co.in"); $mail->AddAddress("vinay@pinnacle-s.com");// if (!$mail->Send()) { echo "<script> alert('Error While Message Send, Please Try Again Later !!!'); //window.location.href='index.html'; </script>"; } else { echo "<script> alert('Thank you for subscribing!.'); window.location.href='index.html'; </script>"; } } ?>