3v4l.org

run code in 300+ PHP versions simultaneously
<?php $curso="RUI"; $nome="RUI"; $morada="RUI"; $contacto="RUI"; $email="RUI"; $profissional="RUI"; $email_from = 'geral@cooperativa-agricola.pt'; $email_subject = "Coonfagri-Novo Candidato"; $email_body ="Candidato ao Curso de $curso.\Nome : $nome\n Morada : $morada\n Contacto : $contacto\n Email : $email\n Regime : $profissional "; $to = "ruipinheiro65@hotmail.com"; $headers = "From: $email_from \r\n"; $headers .= "Reply-To: $email \r\n"; mail($to,$email_subject,$email_body,$headers); header('Location: www.cooperativa-agricola.pt');
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught Error: Call to undefined function mail() in /in/YnjHJ:25 Stack trace: #0 {main} thrown in /in/YnjHJ on line 25
Process exited with code 255.
Output for 7.3.32 - 7.3.33, 8.0.13
Warning: mail(): Could not execute mail delivery program '/usr/sbin/sendmail -t -i' in /in/YnjHJ on line 25 Warning: Cannot modify header information - headers already sent by (output started at /in/YnjHJ:25) in /in/YnjHJ on line 26
Output for 5.2.3 - 5.2.17, 5.3.0 - 5.3.28, 5.4.0 - 5.4.25, 5.4.41 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
Warning: mail() has been disabled for security reasons in /in/YnjHJ on line 25 Warning: Cannot modify header information - headers already sent by (output started at /in/YnjHJ:25) in /in/YnjHJ on line 26
Output for 5.3.29, 5.4.26 - 5.4.40
sh: 1: /usr/bin/sendmail: not found
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.2
Warning: mail() has been disabled for security reasons in /in/YnjHJ on line 25

preferences:
212.21 ms | 402 KiB | 330 Q