PHP new line break in emails

后端 未结 8 1778
闹比i
闹比i 2020-11-27 20:35

I have the following code:

$message = \"Good news! The item# $item_number on which you placed a bid of \\$ $bid_price is now available for purchase at your b         


        
8条回答
  •  甜味超标
    2020-11-27 21:19

    If you output to html or an html e-mail you will need to use
    or
    instead of \n.

    If it's just a text e-mail: Are you perhaps using ' instead of "? Although then your values would not be inserted either...

提交回复
热议问题