Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

341
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda