📁 File Manager
Editing:
/home/wedigitalindia/public_html/demo.wedigitalindia.com/bbhealthy.in/mail.php
<?php session_start(); include 'config.php'; if(isset($_POST['submit'])){ date_default_timezone_set("Asia/Kolkata"); $enquiry_date = Date('Y-m-d'); echo "run" ; $name = strip_tags(htmlspecialchars($_POST['name'])); $package=strip_tags(htmlspecialchars($_POST['package'])); $phone = strip_tags(htmlspecialchars($_POST['phone'])); $email = strip_tags(htmlspecialchars($_POST['email'])); $message = strip_tags(htmlspecialchars($_POST['message'])); // Set the recipient email address } $to = "vikassejwar009@gmail.com"; // Set the email subject $subject = "Test Email"; // Set the sender email address $from = "test@gmail.com"; // Set the sender name $senderName = "Sender Name"; // Set the email content $message = "This is a test email."; // Set additional headers $headers = "From: $senderName <$from>\r\n"; $headers .= "Reply-To: $from\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=UTF-8\r\n"; // Send the email $mailSent = mail($to, $subject, $message, $headers); // Check if the email was sent successfully if ($mailSent) { echo "Email sent successfully."; } else { echo "Failed to send email."; } ?>
Save
Cancel