title: PHP mail() not working (another one)
body: <p>I'm currently trying to use the php mail() function, I've looked up a lot and can't make it work. Here is the code:</p>
  
  <pre><code>$name=$_POST[name];
  
  if(mail("me@mydomain.com","test"," Name: $name", "FROM: me@otherdomain.com")){
      echo "Your message was succefully sent!";
  }
  else{
      echo "Your message was NOT succefully sent!";
  
  }
  </code></pre>
  
  <p>Whenever I try to run the script, which I'm running on my personal Mac, I get the "Your message was seccefully sent!", however, checking the e-mail, it's not there, not even in the spam box.
  Searching around I already made the necesseary config at php.ini.default:</p>
  
  <pre><code>sendmail_from = "sendmail -t -i"
  </code></pre>
  
  <p>Also made some changes at the /etc/postfix/main.cf</p>
  
  <pre><code>myhostname = mydomain.com
  </code></pre>
  
  <p>I'm running on Snow Leopard and right now I have NO clue with what's wrong here. I've been into this for a while.
  Thanks in advance</p>
  
  <p>PS: sorry if I did something wrong with the question, new on stackoverflow</p>