title: Simple PHP Mail function not working on Amazon server EC2
body: <p>Please see this code </p>
  
  <pre><code>&lt;?php
  $to = "someone@example.com";
  $subject = "Test mail";
  $message = "Hello! This is a simple email message.";
  $from = "someonelse@example.com";
  $headers = "From:" . $from;
  mail($to,$subject,$message,$headers);
  echo "Mail Sent.";
  ?&gt; 
  </code></pre>
  
  <p>what is the problem in this code . Its not working on Amazon Linux server </p>
  
  <p>Thanks</p>