Enquiry From Website
Title: ' . htmlspecialchars($title) . '
Name: ' . htmlspecialchars($fullName) . '
Email: ' . htmlspecialchars($email) . '
Phone: ' . htmlspecialchars($phone) . '
Message:
' . $message . '
';
// Setup PHPMailer
$mail = new PHPMailer(true);
try {
$mail->isSMTP();
$mail->Host = 'v22437909.sin01.serveradd.com';
$mail->SMTPAuth = true;
$mail->Username = 'admin@aiss.org.in';
$mail->Password = 'Oo(hKvdR.52E';
$mail->SMTPSecure = 'ssl';
$mail->Port = 465;
$mail->setFrom('admin@aiss.org.in', 'Sai Baba Temple Website');
$mail->addAddress('kavintechsolutions@gmail.com'); // Send to admin
//$mail->addAddress('periyasamyanbu@gmail.com'); // Send to admin
$mail->addReplyTo($email, $fullName); // Reply to sender
$mail->isHTML(true);
$mail->Subject = "Contact Form Submission - " . $title;
$mail->Body = $htmlBody;
$mail->send();
echo "";
} catch (Exception $e) {
echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}";
}
}
?>