Jump to content

Pear Fatal error Class mail_mail: Cannot inherit from undefined class mail


rubing

Recommended Posts

I am trying to use the pear's RFC82l2 package for validating and parsing email addresses.  The path to pear's mail package on my webhost's server is:  /usr/local/php5-fcgi/lib/php/pear/Mail/mail.php

 

so, my script has the following require statements: 

 

<?php
require_once "/usr/local/php5-fcgi/lib/php/pear/pear.php";
require_once "/usr/local/php5-fcgi/lib/php/pear/Mail/mail.php";
require_once "/usr/local/php5-fcgi/lib/php/pear/Mail/RFC82l2.php";
...

 

Unfortunately the script fails as follows:

Fatal error:  Class mail_mail:  Cannot inherit from undefined class mail in /usr/local/php5-fcgi/lib/php/pear/Mail/mail.php on line 27

 

 

Is there something I'm failing to include?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.