Now I know that \r is a carriage return but I'm having trouble getting it to work in the following:
$subject = "An Urgent job has just been logged by " . $employee_name . ". The user has submitted the following job details: " . $_POST['job_details'] . "";
I need a carriage return just before the $POST['job_details'] so that when I use it in the following:
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: 'HelpdeskBot@work.org'\r\n";
$subject = "An Urgent job has just been logged by " . $employee_name . ". The user has submitted the following job details: " . $_POST['job_details'] . "";
mail($eng_username,'URGENT JOB LOGGED',$subject,$headers);
the job details start on a new line.
I've tried a selection of ways to get it to work but none have succeeded.
Can someone point out what I'm missing?
Cheers.