title: PHP mail function return Server Error
body: <p>I am a PHP newbie coder. Currently I am studying the mail function of PHP but the function always give me error such as Server error. I don't know if I have to install a software or configure the server first. By the way, I use Phpdev for my development environment.</p>
  
  <pre><code>if(mail("me@gmail.com", "Hi","This is a test"))
  {
     echo "Success";
  }
  else
  {
     echo "Failed";
  }
  </code></pre>
  
  <p>Many thanks.</p>