php - smtp pear Mail.php 包括
这可能是一个简单的问题,但我现在很困惑。我基本上使用了为之前的项目构建的相同框架并更改了皮肤。
我尝试测试电子邮件功能但失败,错误如下:
警告:require_once() [function.require-once]: open_basedir 限制生效。 文件(../../../../php/Mail.php)不是 在允许的路径内: (/home/amatoita:/usr/lib/php:/usr/local/lib/php:/tmp)
由于某种原因,我似乎不允许在这里???
所以我尝试了
/usr/lib/php/Mail.php
/home/amatoita/php/Mail.php
/usr/local/lib/php/Mail.php
引发以下错误:
需要打开失败 '邮件/mimePart.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') 在 /home/amatoita/php/Mail/mime.php
有人能看到我哪里出错了吗?
this may be a simple one but im confused now. I basicly using the same frame work which i built for a previouse project and changing the skin.
I have tried to test the email function but has failed to work, this is the error:
Warning: require_once()
[function.require-once]: open_basedir
restriction in effect.
File(../../../../php/Mail.php) is not
within the allowed path(s):
(/home/amatoita:/usr/lib/php:/usr/local/lib/php:/tmp)
for some reason It seems like im not allowed here???
so i tried
/usr/lib/php/Mail.php
/home/amatoita/php/Mail.php
/usr/local/lib/php/Mail.php
which threw the following error:
Failed opening required
'Mail/mimePart.php'
(include_path='.:/usr/lib/php:/usr/local/lib/php')
in /home/amatoita/php/Mail/mime.php
can anyone see where i am going wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我能够按照 马克的技术博客。
我的问题是 pear 的 Mail 模块未包含在标准 Fedora 安装中。
然后我使用了一些代码来自 PEAR 站点 。
现在我的电子邮件可以很好地以 HTML 格式发送。希望对您有帮助。
I was able to fix this issue by following the PEAR install directions at Mark's Tech Stuff blog.
My problem was that the Mail module of pear is not included in a standard Fedora install.
Then I used some code from the PEAR site.
Now my email gets sent in HTML just fine. Hope that helps you.
您需要将该软件包安装在 include_path 中列出的目录之一中。这意味着(最有可能),您希望它是:
并且将 mimePart.php 放在
You'd need to have that package installed in one of the directories listed in the include_path. That means (most likely), you'd want it to be:
and have the mimePart.php in