title: can't send email using xampp
body: <p>I cant send email when uses xampp server.
  here is my code.</p>
  
  <pre><code>    class email {
  
          function emailwithattach($email_to,$email_subject,$email_message)
          {
  
              $email_message="Test mail";
              $email_subject = "Transaction Detail Notification";
  
              $headers = "From: ".$email_from;
  
              if (@mail($email_to,$email_subject,$email_message))
              {
                  return true;
              }
          }
     }
  </code></pre>
  
  <p>its work using another web server but cant work in XAMPP</p>