Results 1 to 8 of 8
Oct 14, 2013, 04:41 #1
- Join Date
- Oct 2010
- 1 Post(s)
- 0 Thread(s)
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)
$headers = "From: firstname.lastname@example.org\r\n"
. 'MIME-Version: 1.0' . "\r\n"
. 'Content-type: text/html; charset=iso-8859-1' . "\r\n"
. 'Bcc:email@example.com' . "\r\n";