• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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