31 lines
992 B
PHP
Executable File
31 lines
992 B
PHP
Executable File
<?php
|
|
header('Content-Type: application/json');
|
|
|
|
$to = "yacineutt@gmail.com";
|
|
$subject = "🧪 Test PHP mail() Direct - " . date('Y-m-d H:i:s');
|
|
$message = "Ceci est un test direct du système mail() PHP.\n\n";
|
|
$message .= "Serveur: 89.167.40.150\n";
|
|
$message .= "Date: " . date('Y-m-d H:i:s') . "\n";
|
|
$message .= "User Agent: " . ($_SERVER['HTTP_USER_AGENT'] ?? 'Unknown') . "\n";
|
|
$message .= "Test ID: php_mail_" . time() . "\n\n";
|
|
$message .= "Si tu reçois ceci, le système mail() fonctionne.";
|
|
|
|
$headers = "From: no-reply@wevads-arsenal.com\r\n";
|
|
$headers .= "Reply-To: no-reply@wevads-arsenal.com\r\n";
|
|
$headers .= "X-Mailer: WEVADS Arsenal v3.0\r\n";
|
|
$headers .= "X-Test-ID: php_mail_" . time();
|
|
|
|
// Essayer d'envoyer
|
|
$result = mail($to, $subject, $message, $headers);
|
|
|
|
echo json_encode([
|
|
'success' => $result,
|
|
'to' => $to,
|
|
'subject' => $subject,
|
|
'test_id' => 'php_mail_' . time(),
|
|
'timestamp' => date('c'),
|
|
'method' => 'php_mail()'
|
|
], JSON_PRETTY_PRINT);
|
|
?>
|
|
|