Why won't my PHP mail() function send linebreaks?
<p>Here's the script:</p>

<pre><code>&lt;?php

    $name = $_POST["name"];
    $email = $_POST["email"];
    $message = $_POST["message"];

    $recipient = "me@christianselig.com";
    $subject = "Message From Website";
    $body = "[From: " . $name . "]\r\n\r\n" . $message;
    $headers = "From: " . $email . "\r\n";
    $headers .= "Content-type: text/html; charset=UTF-8" . "\r\n";

    $success = mail($recipient, $subject, $body, $headers);

    echo $success;

?&gt;
</code></pre>

<p>On this page: christianselig.com/contact.html</p>

<p>My message will send without any linebreaks. I have it set to separate the [From: xxx] section from the message with a double linebreak, so it should look like this:</p>

<blockquote>
  <p>[From: John]</p>
  
  <p>Hey.</p>
</blockquote>

<p>But it doesn't.</p>

<p>If I make the message multiple lines long, it also concatenates them on one line. How do I prevent this behaviour? My code used to allow it, but I broke it somehow...</p>
