3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $email = $_POST["email"]; $to = "george.cojanu@swisogroup.ro"; $subject = "DEZABONARE NEWSLETTER"; $body = $email; if (mail($to, $subject, $body)) { echo("<p>Email successfully sent!</p>"); } else { echo("<p>Email delivery failed…</p>"); } ?>
Output for 5.3.0 - 7.2.0
Notice: Undefined index: email in /in/kR9hl on line 2 Warning: mail() has been disabled for security reasons in /in/kR9hl on line 7 <p>Email delivery failed…</p>
Output for 4.3.0 - 5.2.17
Notice: Undefined index: email in /in/kR9hl on line 2 Warning: mail() has been disabled for security reasons in /in/kR9hl on line 7 <p>Email delivery failed…</p>