3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $to = "huub.van.baal@planet.nl"; $subject = "This is subject"; $message = "<b>This is HTML message.</b>"; $message .= "<h1>This is headline.</h1>"; $header = "From: \"Huub van Baal\" <huub@workinmall.nl>\r\n"; $header .= "MIME-Version: 1.0\r\n"; $header .= "Content-type: text/html\r\n"; $retval = mail ($to,$subject,$message,$header); if( $retval == true ) { echo "Message sent successfully..."; } else { echo "Message could not be sent..."; } ?>
based on gkHA6
Output for 5.3.18 - 7.2.0
Warning: mail() has been disabled for security reasons in /in/svslp on line 12 Message could not be sent...