hello, i have been trying to get a newline in an email, i have tried '\r\
' and i have also tried \
, 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\
$body .= "We are happy to inform you that your order has been placed,\
Thanks for the making the payment of $tranx_amt ,\
Your 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)
$headers = "From: firstname.lastname@example.org\\r\
. 'MIME-Version: 1.0' . "\\r\
. 'Content-type: text/html; charset=iso-8859-1' . "\\r\
. 'Bcc:email@example.com' . "\\r\
any ideas on the new line and the decimal places.