new line in email, and decimal point
hello, i have been trying to get a newline in an email, i have tried '\r\n' and i have also tried \n\n, i dont know where i am getting it wrong, and also i included a transaction amount ($tranx_amt) in the email, and it is coming up with 4 decimal places. the markup is below.
$body = " Hello $cust_id\r\n";
$body .= "We are happy to inform you that your order has been placed,\n\n Thanks for the making the payment of $tranx_amt ,\n\nYour Payment reference no is $orderno";.
this is the header (the email also contains tables in the body thats why the html type is in the heading)
any ideas on the new line and the decimal places.
$headers = "From: email@example.com\r\n"
. 'MIME-Version: 1.0' . "\r\n"
. 'Content-type: text/html; charset=iso-8859-1' . "\r\n"
. 'Bcc:firstname.lastname@example.org' . "\r\n";