How to send a message in php with paragraphs
问题 I'm using the php code below to send a message <?php $newline = $_GET['message']; $newline = str_replace("[N]","\n","$newline"); $newline = str_replace("[n]","\n","$newline"); mail($_GET['to'],$_GET['subject'],$newline,"From: ".$_GET['from']); header( 'Location: http://my_site.com/POMPC/report.html' ) ; ?> sadly, when I send the message, it appears but everything appears in a straignt line, messing up the message. Example: Hello, This is a message. Reply. Appears as Hello,This is a message.