• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Help with installing pear packages

Ivica

New Pleskian
Hello

Client is getting following error while using his scripts on plesk12.5 with couldlinux.

PHP Warning: include(): Failed opening 'Mail.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php'
PHP Fatal error: Class 'Mail' not found

I managed to fix that error on cloudlinux handler with installing install Net_SMTP

However if we use your plesk handler we can't get it to work properly.
How would I fix that error on this handler for instance.
/opt/plesk/php/7.0/

I did try "/opt/plesk/php/7.0/bin/pear install Net_SMTP" and it installed successfully but the error persists. Am I missing something?



Thank you in advance.
 
Perhaps your client need to either specify the full path to the PEAR Mail package that he has installed (instead of include 'Mail.php';), or include this path in PHP 7.0 php.ini's include_path.
 
Back
Top