title: How to send a message in php with paragraphs
body: <p>I'm using the php code below to send a message</p>
  
  <pre><code>&lt;?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' ) ;
  ?&gt;
  </code></pre>
  
  <p>sadly, when I send the message, it appears but everything appears in a straignt line, messing up the message.</p>
  
  <p>Example: </p>
  
  <pre><code>Hello,
  This is a message. 
  Reply.
  </code></pre>
  
  <p>Appears as</p>
  
  <blockquote>
    <p>Hello,This is a message. Reply.</p>
  </blockquote>
  
  <p>Everything is in a straignt line and messes up stuff. How do I mantain the formatting. The message I'm sending is from my desktop application and sends user defined data to me.</p>