OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
hps
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/17/2025 10:17:24 AM
rwxrwxr-x
📄
dashboard.php
3.64 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
hpsdb.php
351 bytes
05/19/2025 10:07:13 AM
rw-r--r--
📄
index.php
3.82 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
send_otp.php
795 bytes
05/19/2025 10:07:13 AM
rw-r--r--
📄
submit_form.php
7.17 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
verify_otp.php
4.86 KB
05/19/2025 10:07:13 AM
rw-r--r--
Editing: send_otp.php
Close
<?php // Configuration for email $to = $_POST['email']; // Get email from POST request $subject = "Your OTP Code"; $otp = rand(100000, 999999); // Generate a random 6-digit OTP // Create the email body $message = "Your OTP code is: " . $otp; // Headers for email $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-Type: text/html; charset=UTF-8" . "\r\n"; $headers .= "From: no-reply@yourdomain.com" . "\r\n"; // Replace with your email // Send the email if (mail($to, $subject, $message, $headers)) { // Store the OTP in a session or database (for verification later) session_start(); $_SESSION['otp'] = $otp; echo "OTP has been sent to your email."; // Send success response } else { echo "Failed to send OTP. Please try again."; } ?>