• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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