3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 5.4.41 - 7.1.0
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.25 - 5.3.29, 5.4.16 - 5.4.40
sh: 1: /usr/bin/sendmail: not found
Output for 4.3.1 - 5.3.9, 5.3.11 - 5.3.24, 5.4.0 - 5.4.15
sh: 1: /usr/sbin/sendmail: not found
Output for 5.3.10
sh: 1: -t: not found
Output for 4.3.0
Warning: mail() has been disabled for security reasons in /in/YnjHJ on line 25