3v4l.org

run code in 500+ PHP versions simultaneously
<?php // 1. Set your target (the ruutukf.com address from your screenshot) $to = "your-ga99i8uzel@ruutukf.com"; // 2. Set the "Spoofed" identity $subject = "URGENT: Your Prize Claim - Project Test"; $from = "admin@gigahertzgiveaways.co.uk"; // 3. Craft the headers (This is where the spoofing happens) $headers = "From: " . $from . "\r\n"; $headers .= "Reply-To: " . $from . "\r\n"; $headers .= "X-Mailer: PHP/" . phpversion(); // 4. The "Phishing" Body $message = "Congratulations! You have won the jackpot. Please reply to this email to claim your prize."; // 5. Execute the send if(mail($to, $subject, $message, $headers)) { echo "SUCCESS: The spoofed email has been sent to $to"; } else { echo "ERROR: The server blocked the mail() function."; } ?><?php // 1. Set your target (the ruutukf.com address from your screenshot) $to = "your-ga99i8uzel@ruutukf.com"; // 2. Set the "Spoofed" identity $subject = "URGENT: Your Prize Claim - Project Test"; $from = "admin@gigahertzgiveaways.co.uk"; // 3. Craft the headers (This is where the spoofing happens) $headers = "From: " . $from . "\r\n"; $headers .= "Reply-To: " . $from . "\r\n"; $headers .= "X-Mailer: PHP/" . phpversion(); // 4. The "Phishing" Body $message = "Congratulations! You have won the jackpot. Please reply to this email to claim your prize."; // 5. Execute the send if(mail($to, $subject, $message, $headers)) { echo "SUCCESS: The spoofed email has been sent to $to"; } else { echo "ERROR: The server blocked the mail() function."; } ?>
Output for 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
Fatal error: Uncaught Error: Call to undefined function mail() in /in/n4pia:18 Stack trace: #0 {main} thrown in /in/n4pia on line 18
Process exited with code 255.

preferences:
53.43 ms | 708 KiB | 4 Q