在服务器上使用带有php的邮件PEAR时出现的问题
我想使用PEAR能够发送smtp电子邮件。 我知道PEAR安装在我的服务器上,并且include_路径定义良好。 但是:在服务器上使用带有php的邮件PEAR时出现的问题,php,email,pear,Php,Email,Pear,我想使用PEAR能够发送smtp电子邮件。 我知道PEAR安装在我的服务器上,并且include_路径定义良好。 但是:需要一次'Mail.php'返回错误: 致命错误:require_once():无法打开所需的“Mail.php” (include_path='。:/usr/lib/php:/usr/local/lib/php:/home/[username]/php') 在/home/[username]/public\u html/email\u test.php中 但下面的代码可以正常
需要一次'Mail.php'代码>返回错误:
致命错误:require_once():无法打开所需的“Mail.php”
(include_path='。:/usr/lib/php:/usr/local/lib/php:/home/[username]/php')
在/home/[username]/public\u html/email\u test.php中
但下面的代码可以正常工作:
require_once 'System.php';
if(class_exists('System')===true) {
echo 'PEAR is installed!';
} else {
echo 'PEAR is not installed :(';
}
我错过了什么?有什么建议吗?通常PEAR软件包安装在PEAR添加到include路径的目录中,但我在这里看不到任何特定的PEAR路径。查看文件的路径可能有误。