3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $to = "ericnmk80@gmail.com"; $subject = "Test mail"; $message = "Hello. This is a simple email message."; $from = "info@blastthem.com"; $headers = 'From: eric@blastthem.com' . "\r\n" . 'Reply-To: info@blastthem.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion() . "\n"; //ini_set ( "SMTP", "mail.etamogatasi.net" ); $ret = mail($to,$subject,$message,$headers); if ( $ret == '' ) { echo "Failed." . $ret; } else { echo "Mail Sent." . $ret; } ?>
Output for 4.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: mail() has been disabled for security reasons in /in/NqbaK on line 10 Failed.
Output for hhvm-3.10.0 - 3.12.0
Failed.