i am trying to put some line breaks in the email and it dosent seem to work. can someone look at this code and maybe inform me as to why the line breaks are not happening. it is weird and i have done it in the past. could it be something on the server?
thanks
Code: Select all
$to = 'email@email.net';
$subject = 'Temporary Employee Parking Permit Application';
$message = "A parking permit application has been completed:\n\n";
$message .= "$business_name\n\n";
$message .= "$first_name $last_name\n\n";
$message .= "Make/Model: $makemodel\n\nLicense #: $license\n\n";
$message .= "Start Date: $startdate\n\nEnd Date: $enddate";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'To: ME <email@email.com>' . "\r\n";
$headers .= 'From: Website <email@email.net>' . "\r\n";
mail($to, $subject, $message, $headers);