3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ini_set( 'display_errors', 1 ); error_reporting( E_ALL ); $from = "dvsaikumar07@outlook.com"; $to = "dvsaikumar@live.com"; $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"; ?>
based on bOKjq
Output for 4.3.0 - 7.2.0
Warning: mail() has been disabled for security reasons in /in/22KUS on line 9 Test email sent