3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ini_set( 'display_errors', 1 ); error_reporting( E_ALL ); $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.1.0
Warning: mail() has been disabled for security reasons in /in/dFvs8 on line 9 Test email sent