title: Fatal error: class not found using pear in xampp
body: <p>I'm trying to send an email using form data. I'm adapting the method described at <a href="http://www.html-form-guide.com/email-form/php-email-form-attachment.html" rel="nofollow">http://www.html-form-guide.com/email-form/php-email-form-attachment.html</a> which uses the PEAR library. I'm testing my site locally via XAMPP.</p>
  
  <p>Here's the code from the top of my page:</p>
  
  <pre><code>&lt;?php 
  // Pear library includes
  include_once('Mail/mail.php');
  include_once('Mail/mime.php');
  </code></pre>
  
  <p>Testing the page produces the following:</p>
  
  <p>Fatal error: Class 'Mail' not found in C:\xampp\php\PEAR\Mail\mail.php on line 51</p>
  
  <p>Here's line 51 from mail.php (I haven't altered the file from the default XAMPP installation):</p>
  
  <pre><code>class Mail_mail extends Mail {
  </code></pre>
  
  <p>Any help would be much appreciated.</p>