title: Php mail() does not work on Ubuntu 14.04
body: <p>i'm developing a Web Application in php and at some point i need to send a confirmation mail. Sendmail in installed but when i try to run this code it load the page really slow and nothing happens.</p>
  
  <pre><code>&lt;?php
  $to = "my.real.mail@gmail.com";
  $subject = "Confimation";
  
  $message = "
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;HTML email&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;p&gt;This email contains HTML Tags!&lt;/p&gt;
  &lt;table&gt;
  &lt;tr&gt;
  &lt;th&gt;Firstname&lt;/th&gt;
  &lt;th&gt;Lastname&lt;/th&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;John&lt;/td&gt;
  &lt;td&gt;Doe&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  ";
  
  // Always set content-type when sending HTML email
  $headers = "MIME-Version: 1.0" . "\r\n";
  $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
  
  // More headers
  $headers .= 'From: &lt;my.real.mail@gmail.com&gt;' . "\r\n";
  
  mail($to,$subject,$message,$headers);
  ?&gt;
  </code></pre>
  
  <p>This is the mail.log</p>
  
  <pre><code>May 19 13:18:02 al-Inspiron-5548 sendmail[6934]: t4JBI24R006934: from=www-data, size=416, class=0, nrcpts=0, msgid=&lt;201505191118.t4JBI24R006934@localhost.localdomain&gt;, relay=www-data@localhost
  May 19 13:18:02 al-Inspiron-5548 sendmail[6936]: t4JBI2ex006936: from=www-data, size=416, class=0, nrcpts=0, msgid=&lt;201505191118.t4JBI2ex006936@localhost.localdomain&gt;, relay=www-data@localhost
  </code></pre>
  
  <p>Someone can help me?</p>