title: PHP: Adding new lines to PHPMailer plain text email
body: <p>I am using PHPMailer to send from my PHP script to an SMTP server.</p>
  
  <p>To add new lines using php's mail function, I simply add </p>
  
  <pre><code>"\r\n", 
  </code></pre>
  
  <p>however this does not work with PHPMailer.</p>
  
  <p>I have tried</p>
  
  <pre><code>'\r\n'
  \r
  \n
  chr(20)
  </code></pre>
  
  <p>How can I add new lines?</p>
  
  <p>The code is</p>
  
  <pre><code>$message =  $contents .
                  "\r\n" .
                  "\r\n" .
                  'Regards';
  $mail-&gt;AltBody = $message;
  </code></pre>
  
  <p>Where $contents it just a sentence.</p>