관리-도구
편집 파일: contact_send.php
<?php include 'process/connection.php'; if (isset($_POST['submit'])) { $name = $_POST['name']; $email = $_POST['email']; $contact_number = $_POST['contact_number']; $location = $_POST['location']; $message = $_POST['message']; $msg = "<html> <head></head> <body> <p>QUICK CONTACT</p> <table> <tr><td>Name:</td><td>" . $name . "</td></tr> <tr><td>Email:</td><td>" . $email . "</td></tr> <tr><td>Contact Number:</td><td>" . $contact_number . "</td></tr> <tr><td>Location:</td><td>" . $location . "</td></tr> <tr><td>Message:</td><td>" . $message . "</td></tr> </table> </body> </html>"; $to = "dayacarecharitable@gmail.com"; $subject = "Quick Contact"; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; $headers .= "From: your_email@example.com"; // Replace with your own email address // Send the email if (mail($to, $subject, $msg, $headers)) { echo '<script>alert("Success");</script>'; header("location: https://dayacare.in/"); } else { echo '<script>alert("Failed to send email");</script>'; header("location: https://dayacare.in/"); } } ?>