Basically my problem is the format that the mail goes through.
There is section in the middle of my confirmation e-mail that doesn't format correct.
All fields should list underneath each other, but this is what it comes through as:
e-mail:
Thank you for placing a booking on the Forever Resorts Website:
Your details have been recorded as follows:
Personal Information :
Unique Reference Number - 20070619-6112 Name - Thys Surname - du Plessis Telephone (W) - 011 990 9939 Telephone (h) - 011 412 2345 Cell - 072 803 4933 Fax - 011 412 8339 E-Mail - thys@myeamil.co.za Address - myaddress1
myaddress2
City - Johannesburg
Country - South Africa
Resort Information:
Resort - Forever Resort Badplaas
Arrival Date - 2007/09/09
Departure Date - 2007/09/12
Accommodation Type - Suite
Number of Adults - 9
Number of Children - 9
Children Ages - 9
Number of Rooms - 9
Special Requirements - New test
Can anyone see why the section between Unique "Reference Number" and "Address" does respond to the line break (\n)? I am out of reason.
See code below.
<?
$to = " $email";
$subject = " Forever Resorts - Aventura Online Booking Service";
$headers = 'From: cro@mymail.co.za' . "\r\n" .
'Reply-To: cro@mymail.co.za' . "\r\n" .
// 'X-Mailer: PHP/' . phpversion();
$message = " Thank you for placing a booking on the Forever Resorts website:\n\n";
$message .= " Your details have been recorded as follows: \n\n";
$message .= " Personal Information : \n";
$message .= " Unique Reference Number - $ref \n";
$message .= " Name - $fname \n";
$message .= " Surname - $sname \n";
$message .= " Telephone (W) - $telno_w \n";
$message .= " Telephone (h) - $telno_h \n";
$message .= " Cell - $cellno \n";
$message .= " Fax - $faxno \n";
$message .= " E-Mail - $email \n";
$message .= " Address - $address1 \n";
$message .= " $address2 \n";
$message .= " City - $city \n";
$message .= " Country - $country \n\n";
$message .= " Resort Information : \n";
$message .= " Resort - $resort \n";
$message .= " Arrival Date - $arr_date \n";
$message .= " Departure Date - $dep_date \n";
$message .= " Accommodation Type - $accom_type \n";
$message .= " Number of Adults - $no_adults \n";
$message .= " Number of Children - $no_child \n";
$message .= " Children Ages - $child_ages \n";
$message .= " Number of Rooms - $no_rooms \n";
$message .= " Special Requirements - $requirements \n";
mail($to,$subject,$message,$headers);
?>
Sorry for the long read.
Thanks.