newline not working in PHP mail

前端 未结 3 1196
无人共我
无人共我 2020-12-05 12:40

I\'m using the following to send an email:



        
3条回答
  •  误落风尘
    2020-12-05 13:36

    Try to change your ' to " - php interprets a string inside single quotes as literals, whereas with quotes (") it will expand the \r\n to what you want.

    More information: http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.single

提交回复
热议问题