I've got PHP working on High Sierra on OS X.
I'd like to use it to send an email. (Using this for Secret Santa program.) The mail function doesn't seem to actually anything, though.
<?php
$to = 'exampleperson@gmail.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: secretsanta@exampledomain.com' . "\r\n" .
'Reply-To: secretsanta@exampledomain.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>
Am I missing a configuration somewhere?