title: Why mail fails in php?
body: <p>This is my Code :</p>
  
  <pre><code>&lt;?php
  //define the receiver of the email
  $to = 'dannyfeher69@gmail.com';
  //define the subject of the email
  $subject = 'Test email';
  //define the message to be sent. 
  $message = "Hello World!\n\nThis is my mail.";
  //define the headers we want passed. 
  $header = "From: me@localhost.com";
  //send the email
  $mail_sent = @mail( $to, $subject, $message);
  //if the message is sent successfully print "Mail sent". Otherwise print "Mail failed" 
  
  echo $mail_sent ? "Mail sent" : "Mail failed";
  ?&gt;
  </code></pre>
  
  <p>--  it returns mail failed</p>
  
  <p>Please help me</p>