php \r\n output issue in email -


i know simple issue , i've searched answers on here , other places through google still can't seem work. here's issue. have following code:

$name = $_post['name']; $phone = filter_var($_post['phone'], filter_sanitize_number_int); $address = $_post['address']; $city = $_post['city']; $contact_time = $_post['call-time']; $job_descr = $_post['job-description']; $subject= $name. ' requested quote'; $text = $name. " requested quote.\r\n";  foreach($_post $item => $key)// of variables sent , put them in list emailed {        if(!empty($key) , $item != 'submit')         $textappend .= "$item: $key\r\n"; }  $text .= "information:\r\n$textappend"; 

the email collects variables , sends them. problem not output new line \r\n in code. displays in single line. not using right quotation double quotes? appreciated. thanks

$headers .= "\n--$boundary\n"; // beginning \n added separate previous content $headers .= "content-type: text/plain; charset=iso-8859-1\r\n"; 

pass $headers variable mail function , let me know if works


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -