Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

345
Views
PHP Fatal error: require_once(): Failed opening required 'Mail.php' (include_path='.:/usr/share/pear:/usr/share/php')

When i send mail using SMTP i am getting error like

PHP Fatal error: require_once(): Failed opening required 'Mail.php' (include_path='.:/usr/share/pear:/usr/share/php') in ...

How can i debug this? I have installed PEAR module correctly. Installed pear list is

Installed packages, channel pear.php.net:
=========================================
Package          Version State
Archive_Tar      1.3.11  stable
Console_Getopt   1.3.1   stable
HTML_Common      1.2.5   stable
HTML_Page2       0.6.3   beta
Mail             1.2.0   stable
PEAR             1.9.4   stable
Structures_Graph 1.0.4   stable
XML_Util         1.2.1   stable

Need to install any other pear dependences?

Thanks in advance

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Use terminal to check where Pear is installing .php files. Use command pear config-get php_dir to get the right directory. Use the Pear Manual to verify you Pear configuration and for debug.

over 4 years ago · Santiago Trujillo Report

0

Ignore the Pear message.

You need to find the correct path to Mail.php.

If it is in the same folder then it will look like this:

require_once('Mail.php')

If not, then use absolute path. EG:

require_once('/var/www/Mail.php')

Or whatever the relative path is:

require_once('directory/Mail.php')
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!