‘, $interests);
}
// — Basic Validation —
if (!empty($name) && !empty($email) && !empty($message) && filter_var($email, FILTER_VALIDATE_EMAIL)) {
// Construct the email subject
$emailSubject = ‘New Tour Inquiry: ‘ . $tripTitle;
// Construct the rich HTML email body
$htmlContent = ”
New Bespoke Tour Inquiry
You have received a new tour inquiry from your website contact form.
Contact Details
Name: {$name}
Email: {$email}
WhatsApp Number: {$whatsapp}
Nationality: {$nationality}
Trip Details
Trip Title: {$tripTitle}
Travel Dates: {$travelDate}
Trip Duration: {$duration} days
Travel Route: {$travelRoute}
Traveler Information
Adults: {$adults}
Children (6-12): {$children}
Infants (Below 2): {$infant1}
Infants (2-6): {$infant2}
Total Travelers: {$totalTravelers}
Preferences
Air Ticket Class: {$ticketClass}
Accommodation Preference: {$accommodations}
Travel Interests:
{$travelInterests}
Message
“.nl2br($message).”
“;
// Set email headers for sending HTML email
$headers = “MIME-Version: 1.0” . “\r\n”;
$headers .= “Content-type:text/html;charset=UTF-8” . “\r\n”;
$headers .= ‘From: ‘ . $name . ‘ <' . $email . '>‘ . “\r\n”;
$headers .= ‘Reply-To: ‘ . $email . “\r\n”;
// Send the email
$mail = mail($toEmail, $emailSubject, $htmlContent, $headers);
// Set status message after submission attempt
if ($mail) {
// This message is shown on the final ‘Thank You’ step
$statusMsg = “Thank you, {$name}! Your inquiry has been sent successfully. We will get back to you shortly.”;
} else {
// This message will be shown if there’s a server-side error
$statusMsg = “Sorry, there was an error sending your message. Please try again later.”;
}
} else {
$statusMsg = ‘Please fill in all required fields and provide a valid email address.’;
}
}
?>
CONTACT US
Feel free to get in touch with us for our unique travel itineraries and tour packages

We hosted the Bucket List Family in October 2018