title: mailed by php how to use it?
body: <p>How can i use the mail by header in php?</p>
  
  <p>This is what i use now: </p>
  
  <pre><code>//define the headers we want passed. Note that they are separated with \r\n
  
  $headers = "From: test@gmail.com\r\nReply-To:test@gmail.com";
  
  //send the email
  $to = "test@gmail.com";
  
   $subject = "This is a subject";
  
   $body = "Hi there!";
  
   if (mail($to, $subject, $body,$headers)) 
  {
  
  echo("\nMessages successfully sent!");
  
    } else {
  
     echo("\nMessages delivery failed...");
    }
  </code></pre>
  
  <p>I get this on my gmail when i click on show details:</p>
  
  <p>from    test@gmail.com
  reply-to    testreply@gmail.com
  to  test@gmail.com
  date    Sat, May 14, 2011 at 12:06 AM
  subject stefanos neofitidis! You commented on your poem:Tree present
  mailed-by   ip-1-1-1-1.ip.secureserver.net</p>
  
  <p>i do not want to the ip-1-1-1-1.ip.secureserver.net to show up to the users...this is what i am trying to change!</p>