joomla 无法启动邮件功能
我在 Joomla 发送邮件时收到此错误。
我并不是每次都会收到此错误。但有时它显示我“无法启动邮件功能”。
有什么解决办法吗?
I am getting this error in Joomla while sending the mail.
I am not getting this error every time. But some times its shows me "cannot initiate mail function".
Any solution for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您在本地服务器上工作,则不会启动邮件。因此,将您的网站托管在服务器中并尝试一下。
如果您有任何疑问,请告诉我
If you are working in the local server, the mail will not initiate. So host your website in server and try it.
If you have any questions, let me know
如果您在自己的计算机上使用 WAMP 或类似产品并收到此消息,则您需要安装邮件服务器。这是 Windows 上的最佳解决方案。
http://www.toolheap.com/test-mail-server-tool/
If you are using WAMP or similar on your own machine and are getting this message then you need to install a mail server. This is the best solution on Windows.
http://www.toolheap.com/test-mail-server-tool/
这可能是任意数量的事情,但首先要检查的事情的一般列表是您的 Joomla 配置:
管理面板 >全局配置>服务器>邮件设置>邮件程序
确保设置为使用 PHP 邮件功能。如果是,请尝试创建一个名为 test.php 的脚本并将其放在站点的根目录中(其中 index.php 文件用于 Joomla)。将该文件设置为如下所示:
确保将 $to = 行更改为您的电子邮件地址。
现在转到该脚本: http://www.yourjoomlasite.com/test.php
您应该会看到“电子邮件已发送”文本。在您的浏览器中,然后您输入的地址会收到一封电子邮件。如果没有,那么您应该联系您的托管提供商并要求他们升级到最新的 PHP 版本和/或为您解决 mail() 函数问题。这是通过 PHP 发送邮件的最原始的实现,如果它不起作用,那么一定是您的主机有问题。
That could be any number of things, but a general list of things to check would be first, your Joomla config:
Admin panel > Global Configuration > Server > Mail Settings > Mailer
Make sure that's set to use the PHP mail function. If it is, try making a script called test.php and putting it in the root of your site (where the index.php file is for Joomla). Make that file something like this:
Make sure you change the $to = line to your email address.
Now go to that script: http://www.yourjoomlasite.com/test.php
You should see the text 'Email sent.' in your browser and then receive an email to that address you entered. If not, then you should contact your hosting provider and ask them to upgrade to the latest PHP version and/or resolve the mail() function issue for you. That is the most raw implementation of sending mail via PHP and if that fails to work then it's got to be an issue with your host.