<?php
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$phone = $_POST['phone'];
$subject = $_POST['subject'];
$to = "james_hollingsworth@blueyonder.co.uk";
$subject;
$message = "$name,\n$email,\n$message,\n$phone,\n$subject";
mail($to,$subject,$message);
?>
<html>
<head> <title> Contact - Message Sent</title>
<body>
Message Sent Succesfully.
</body>
</html>
I have got it working again now. Leatherback, apologies for my ignorance I guess I was not reading it correctly.
I am currently reading through to give each field a value against the key so this shows in the email body. I am setting the code as follows but this does not work.
-- Actually ignore that bit just got it working, forgot to end the line with ;