3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function sendMail($from, $to, $body, $subject){ $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: '.$from."\r\n"; // corpo della mail mail($to, $subject, $body, $headers); } sendMail('ajeje@gmail.com', 'adus@log607.com', 'ciao', 'ciao'); ?>
Output for 4.3.0 - 7.3.0rc4
Warning: mail() has been disabled for security reasons in /in/rhHf6 on line 9