Contact Us

Get In Touch

Bavdhan Branch:

108 Business Square, 1st floor, Opp. DSK Ranvara, Pune 21
+91 98815 61504
rajopadhyehearingaidhub@gmail.com

Pimple Saudagar Branch:

208, Shree Ganesh Ace Arcade. Nr. Kokane Chowk, Pimple Saudagar, Pune 17
+91 82081 79357
rajopadhyehearingaidhub@gmail.com
alert('hello!!!');"; // include 'config.php'; $Name = $_POST["Name"]; // echo ""; $Email = $_POST["Email"]; $Subject = $_POST["Subject"]; $Message = $_POST["Message"]; //echo ""; //echo ""; //echo ""; $query = "INSERT INTO contact(Name,Email,Subject,Message) VALUES ('$Name','$Email','$Subject','$Message')"; //echo ""; $run_query = mysqli_query($db, $query); if($run_query == true){ //echo ""; // echo ''; // header('Location: ' . $_SERVER['HTTP_REFERER']); }else{ // echo ""; } smtp_mailer($Name,$Email,$Subject,$Message); } function smtp_mailer($Name,$Email,$Subject,$Message) { /* require _DIR_. '/smtp/class.PHPMailer.php'; require 'smtp/Exception.php'; require 'smtp/PHPMailer.php'; require 'smtp/SMTP.php'; require 'smtp/PHPMailerAutoload.php';*/ require_once('class.phpmailer.php'); $mail = new PHPMailer(); $mail->IsSMTP(); $template_file = "mail/contact.php"; $swap_var = array( '{EMAIL_LOGO}' => "https://kwentoeducation.com/assets/images/kwenoimg/her1.jpeg", // '{EMAIL_LOGO}' => "https://rykastay.com/img/logo.jpg", "{EMAIL_TITLE}" => "CONTACT DETAILS ", "{NAME}" => $Name, "{EMAIL}" => $Email, "{SUBJECT}" => $Subject, // "{FROM DATE}" => $from_dt , //"{TO DATE}" => $to_dt, //"{TO_NAME}" => " Welcome to Kwento", //"{TO_EMAIL}" => "sw.shastri@gmail.com", "{MESSAGE}" => $Message, ); if (file_exists($template_file)) $email_message = file_get_contents($template_file); else die ("Unable to locate your template file"); foreach (array_keys($swap_var) as $key){ if (strlen($key) > 2 && trim($swap_var[$key]) != '') $email_message = str_replace($key, $swap_var[$key], $email_message); } $mail = new PHPMailer; $mail->SMTPDebug = 3; // Enable verbose debug output $mail->isSMTP(); // Set mailer to use SMTP $mail->Host ='mail.rajopadhyehearingaid.com'; // Specify main and backup SMTP servers $mail->Port =465; // TCP port to connect to $mail->SMTPAuth = true; // Enable SMauthentication $mail->Username ='info@rajopadhyehearingaid.com'; // SMTusername $mail->Password ='hearingaids@1234'; // SMTP password $mail->SMTPSecure = 'ssl'; // Enable TLS encryption, `ssl` also accepted //$mail->setFrom("info@meeon.in"); $mail->addAddress("info@rajopadhyehearingaid.com"); // $mail->addAddress('order@cafecattleya.in' // ); // Add a recipient //$mail->addAddress('apte.nishant@gmail.com'); // Name is optional $mail->addReplyTo($Email); // $mail->addCC($vendor_mail); // $mail->addBCC('bcc@example.com'); //$mail->addAttachment('/var/tmp/file.tar.gz'); // Add attachments //$mail->addAttachment('/tmp/image.jpg', 'new.jpg'); // Optional name $mail->isHTML(true); // Set email format to HTML $mail->Subject='Contact Details of User'; $mail->Body = $email_message; $mail->AltBody = 'Message from Hearing Aid Hub'; if(!$mail->send()) { echo ""; //echo 'Message could not be sent.'; echo 'Mailer Error: ' . $mail->ErrorInfo; } else { echo ""; } } ?>