I've made a website with a mailing form, and the php to send it is as follows:
<?php
$to = "[email protected]";
$subject = $_POST["subject"];
$message = $_POST["message"];
$headers = 'From: [email protected]' . "\r\n" .
'Reply-To: [email protected]' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>
It won't send anything. Can anyone tell what's wrong in the script?
If it helps on anything, I'm trying to send to an Outlook email.
Thanks