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 = '[email protected]';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [email protected]' . "\r\n" .
'Reply-To: [email protected]' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>
Am I missing a configuration somewhere?