Exceptional Events at
Larisa Shimla
×
"; $email_content .= "Email: " . htmlspecialchars($email) . "Contact Us
By providing your contact details you have expressly authorised Larisa Resort to contact you in future through calls / SMS / Emails
"; $email_content .= "Event Type: " . htmlspecialchars($eventType) . "
"; $email_content .= "Phone Number: " . htmlspecialchars($phone) . "
"; $email_content .= "Event Date: " . htmlspecialchars($eventDate) . "
"; $email_content .= "Message:
" . nl2br(htmlspecialchars($message)); // Set the "To" address and name $to = "info@larisaresort.com"; // Set the "From" address and name $from = "info@larisaresort.com"; $fromname = "LARISARESORT"; // Set the email headers $headers = "From: $fromname <" . strip_tags($from) . ">\r\n"; $headers .= "Reply-To: " . strip_tags($from) . "\r\n"; $headers .= "BCC: " . $to . "\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=UTF-8\r\n"; // Send the email $isMailSent = mail($to, $subject, $email_content, $headers); if ($isMailSent) { // Form data sent successfully // Redirect to a new page $newLocation = "https://www.larisaresort.com/thanks.php"; header("Location: " . $newLocation); exit(); // Important: Make sure to exit after sending the header }else { // Form data not sent echo ""; } } ?>