Hi,
Wondering if anyone can help. Have a script for a form, which takes values from a page here when submit is hit and sends this data via email
<html>
<head>
<title> Sending Email </title>
</head>
<body>
<?php
// Read POST request params into global vars
$to = $_POST['to'];
$from = $_POST['from'];
$subject = $_POST['subject'];
$to="me@me.co.uk";
$subject="Design Request form";
$your_name = $_POST['your_name'];
$your_centre = $_POST['your_centre'];
$your_telephone = $_POST['your_telephone'];
$client_name = $_POST['client_name'];
$current_client = $_POST['current_client'];
$new_client = $_POST['new_client'];
$prospective_client = $_POST['prospective_client'];
$sizes_required = $_POST['sizes_required'];
$proof_required_by = $_POST['proof_required_by'];
$mono = $_POST['mono'];
$spot_colour = $_POST['spot_colour'];
$full_colour = $_POST['full_colour'];
$artwork_and_logos_attached = $_POST['artwork_and_logos_attached'];
$previous_ad_attached = $_POST['previous_ad_attached'];
$rough_outline_attached = $_POST['rough_outline_attached'];
$hard_copy_reference_attached = $_POST['hard_copy_reference_attached'];
$other_attached = $_POST['other_attached'];
$other_details = $_POST['other_details'];
$message .= 'Your Name: '. $your_name .'\n';
$message .= 'Your Centre: '. $your_centre .'\n';
$message .= 'Your Telephone: '. $your_telephone .'\n';
$message .= 'Client Name: '. $client_name .'\n';
$message .= 'Current Client: '. $current_client .'\n';
$message .= 'New Client: '. $new_client .'\n';
$message .= 'Prospective Client: '. $prospective_client .'\n';
$message .= 'Sizes Required: '. $sizes_required .'\n';
$message .= 'Proof Required by: '. $proof_required_by .'\n';
$message .= 'Is Mono: '. $mono .'\n';
$message .= 'Is Spot Colour: '. $spot_colour .'\n';
$message .= 'Is Full Colour: '. $full_colour .'\n';
$message .= 'Artwork or Logos attached: '. $artwork_and_logos_attached .'\n';
$message .= 'Previous Ad Attached: '. $previous_ad_attached .'\n';
$message .= 'Rough Outline Attached: '. $rough_outline_attached .'\n';
$message .= 'Hard Copy Reference Attached: '. $hard_copy_reference_attached .'\n';
$message .= 'Other Attached: '. $other_attached .'\n';
$message .= 'Other details: '. $other_details .'\n';
$finalmessage = addslashes($message);
// Obtain file upload vars
$fileatt = $_FILES['fileatt']['tmp_name'];
$fileatt_type = $_FILES['fileatt']['type'];
$fileatt_name = $_FILES['fileatt']['name'];
$headers = "From: $from";
if (is_uploaded_file($fileatt)) {
// Read the file to be attached ('rb' = read binary)
$file = fopen($fileatt,'rb');
$data = fread($file,filesize($fileatt));
fclose($file);
// Generate a boundary string
$semi_rand = md5(time());
$mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";
// Add the headers for a file attachment
$headers .= "\nMIME-Version: 1.0\n" .
"Content-Type: multipart/mixed;\n" .
" boundary=\"{$mime_boundary}\"";
// Add a multipart boundary above the plain message
$message = "This is a multi-part message in MIME format.\n\n" .
"--{$mime_boundary}\n" .
"Content-Type: text/plain; charset=\"iso-8859-1\"\n" .
"Content-Transfer-Encoding: 7bit\n\n" .
$message . "\n\n";
// Base64 encode the file data
$data = chunk_split(base64_encode($data));
// Add file attachment to the message
$message .= "--{$mime_boundary}\n" .
"Content-Type: {$fileatt_type};\n" .
" name=\"{$fileatt_name}\"\n" .
//"Content-Disposition: attachment;\n" .
//" filename=\"{$fileatt_name}\"\n" .
"Content-Transfer-Encoding: base64\n\n" .
$data . "\n\n" .
"--{$mime_boundary}--\n";
}
// Send the message
$ok = @mail($to, $subject, $message, $headers);
if ($ok) {
echo "<p>Mail sent! Yay PHP!</p>";
} else {
echo "<p>Mail could not be sent. Sorry!</p>";
}
?>
</body>
</html>
Now this works and sends an email to my inbox, but the text sent appears in one line with no line-breaks.

Now i've tried different ways to try and add line-breaks like:
$message .= 'Your Name :'. $your_name .'<br>';
$message .= 'Your Centre :'. $your_centre .'<br>';
$message .= 'Your Name :'. $your_name .'<br />';
$message .= 'Your Centre :'. $your_centre .'<br />';
But it still does not work - any ideas?
Thanks