3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $from = "amazo"; $to = "hamilton@camazo.com.br"; $subject = "PHP Mail Test script"; $message = "This is a test to check the PHP Mail functionality"; $headers = "From:" . $from; mail($to,$subject,$message, $headers); echo "Test email sent"; ?>
Output for 4.3.0 - 7.2.0
Warning: mail() has been disabled for security reasons in /in/TspsY on line 7 Test email sent