'; exit; } } // Default Values $message = "

Hello, how are you?

6ickzone sender.

"; $subject = $_SERVER["HTTP_HOST"] ?? "New Notification"; $sender_name = "6ickzone Support"; $sender_email = "noreply@" . ($_SERVER['HTTP_HOST'] ?? "6ickzone.site"); $email_list = ""; if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['send_now'])) { $message = stripslashes($_POST['html_msg']); $subject = htmlspecialchars($_POST['subject']); $sender_email = filter_var($_POST['s_email'], FILTER_SANITIZE_EMAIL); $sender_name = htmlspecialchars($_POST['s_name']); $email_list = $_POST['emails']; } ?> 6ickzone // Mailer

MAILER 1337

Log Console:

'; $emails = explode("\n", str_replace("\r", "", $email_list)); $emails = array_filter(array_map('trim', $emails)); $total = count($emails); // Handle Attachment $file_tmp = $_FILES['file_attach']['tmp_name']; $file_name = $_FILES['file_attach']['name']; $has_attach = is_uploaded_file($file_tmp); $boundary = md5(time()); // Prepare Headers $headers = []; $headers[] = "MIME-Version: 1.0"; $headers[] = "From: {$sender_name} <{$sender_email}>"; $headers[] = "Reply-To: {$sender_email}"; $headers[] = "Content-Type: multipart/mixed; boundary=\"{$boundary}\""; $headers[] = "X-Mailer: PHP/" . phpversion(); $headerString = implode("\r\n", $headers); $count = 1; foreach ($emails as $email) { if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { echo "[!] Invalid Email: $email
"; continue; } // Build Multipart Message $body = "--{$boundary}\r\n"; $body .= "Content-Type: text/html; charset=\"UTF-8\"\r\n"; $body .= "Content-Transfer-Encoding: 7bit\r\n\r\n"; $body .= $message . "\r\n\r\n"; if ($has_attach) { $content = file_get_contents($file_tmp); $encoded_content = chunk_split(base64_encode($content)); $body .= "--{$boundary}\r\n"; $body .= "Content-Type: application/octet-stream; name=\"{$file_name}\"\r\n"; $body .= "Content-Description: {$file_name}\r\n"; $body .= "Content-Disposition: attachment; filename=\"{$file_name}\"\r\n"; $body .= "Content-Transfer-Encoding: base64\r\n\r\n"; $body .= $encoded_content . "\r\n\r\n"; } $body .= "--{$boundary}--"; if (mail($email, $subject, $body, $headerString)) { echo "[$count/$total] SENT -> $email
"; } else { echo "[$count/$total] FAILED -> $email
"; } // Simple Throttling (2s delay every 10 emails) if ($count % 10 == 0) { flush(); sleep(2); } flush(); $count++; } echo "
Task Completed!
"; } ?>
6ickzone // php mailer