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)
$body .= "We are happy to inform you that your order has been placed,\
\
Thanks for the making the payment of ". number_format($tranx_amt, 2, '.') ." ,<br />Your Payment reference no is $orderno";.
it is not recognizing the transaction amount it, the result is
Hello username
We are happy to inform you that your order has been placed, Thanks for the making the payment of ,
Your Payment reference no is 63749966