Home
About
Services
Residential Interiors
Commercial Interiors
Turnkey Solutions
Renovation & Remodeling
Modular Solutions
Custom Furniture
3D Design & Visualization
Project Management
Projects
Process
Contact
Book Appointment
Residential Interiors
Home
Residential Interiors
Contact Us
If You Have Any Query, Please Feel Free Contact Us
Address
123 Street, New York, USA
Call Us Now
+1 2 345 6789
Mail Us Now
info@yoursite.com
Your Name
Your Email
Phone Number
Subject
Message
Send Message
alert('Please fill in all fields correctly.'); window.history.back();"; exit; } // 1. Email to Admin (Aadya Infotechs) $admin_subject = "New Contact Form Submission: " . $subject; $admin_body = "You have received a new inquiry from your website contact form:\n\n"; $admin_body .= "Name: " . $name . "\n"; $admin_body .= "Email: " . $email . "\n"; $admin_body .= "Phone: " . $phone . "\n"; $admin_body .= "Subject: " . $subject . "\n"; $admin_body .= "Message:\n" . $message . "\n"; $admin_headers = "From: " . $name . " <" . $email . ">\r\n"; $admin_headers .= "Reply-To: " . $email . "\r\n"; $admin_headers .= "Content-Type: text/plain; charset=UTF-8\r\n"; // 2. Email Receipt to the User $user_subject = "Thank you for contacting Aadya Infotechs"; $user_body = "Hello " . $name . ",\n\n"; $user_body .= "Thank you for reaching out to us! We have received your query and will get back to you shortly.\n\n"; $user_body .= "--- Here is a copy of your submission ---\n"; $user_body .= "Subject: " . $subject . "\n"; $user_body .= "Phone: " . $phone . "\n"; $user_body .= "Message: " . $message . "\n\n"; $user_body .= "Best regards,\nAadya Infotechs Team"; $user_headers = "From: Aadya Infotechs <" . $to_admin . ">\r\n"; $user_headers .= "Reply-To: " . $to_admin . "\r\n"; $user_headers .= "Content-Type: text/plain; charset=UTF-8\r\n"; // Send emails $mail_sent_admin = mail($to_admin, $admin_subject, $admin_body, $admin_headers); $mail_sent_user = mail($email, $user_subject, $user_body, $user_headers); if ($mail_sent_admin) { echo ""; } else { echo ""; } } else { header("Location: index.html"); exit; } ?>