can anyone see my (probably obvious) mistake here? sorry for posting code but i really am stuck...
its not the security issue im concerned about, its just the actual sending of the mail. the code takes the user to the thank you page, but it does not send the email to our email account. any ideas much appreciated!
<?php
$email = $_POST['email'];
$message = $_POST['message'];
$usersname = $_POST['name'];
$company = $_POST['company'];
$position = $_POST['position'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$employees = $_POST['employees'];
$SendEmail ="x@labourprovider.com";
$subject = "Feedback Form Results";
$message = "message from x.com payroll: (".$SendEmail.")\n\r";
$message .= "name ".$usersname."\n\r";
$message .= "Company ".$company."\n\r";
$message .= "Position ".$position."\n\r";
$message .= "Phone ".$phone."\n\r";
$message .= "Email ".$email."\n\r";
$message .= "employees ".$employees."\n\r";
$mailheaders = "content-type: text/plain; charset=UTF-8\r\n";
mail("x@labourprovider.com", $subject, $message, $mailheaders);
header( "Location: x.php");
?>