user1684046 user1684046 - 2 years ago 246
PHP Question

Fatal error: class not found using pear in xampp

I'm trying to send an email using form data. I'm adapting the method described at which uses the PEAR library. I'm testing my site locally via XAMPP.

Here's the code from the top of my page:

// Pear library includes

Testing the page produces the following:

Fatal error: Class 'Mail' not found in C:\xampp\php\PEAR\Mail\mail.php on line 51

Here's line 51 from mail.php (I haven't altered the file from the default XAMPP installation):

class Mail_mail extends Mail {

Any help would be much appreciated.

Answer Source

try changing



Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download