警告:出于安全原因已禁用mail() [英] Warning: mail() has been disabled for security reasons
问题描述
早上好
今天,当我尝试通过mail()PHP函数发送电子邮件时,发现网站上出现了问题。邮件未发送,并且我收到以下错误消息:
Today I have found something wrong in my website when I try to send an e-mail trough the mail() PHP function. The mail is not sent and I have this error message:
Warning: mail() has been disabled for security reasons in /home/user/html/modules/mod_jumi/tmpl/default.php(18) : eval()'d code on line 57
我该怎么办才能知道此模块中的问题是什么?我必须在Joomla 3.3的某个地方启用mail()函数吗?
What can I do in order to know which is the problem in this module? I have to enable the mail() function somewhere in my Joomla 3.3?
这就是我的第57行:
mail('mymail@mail.com','Contact from',$message,$headers);
谢谢
问候,
推荐答案
这意味着您使用的任何主机都已禁用 mail()
。请注意, mail()
可用于发送大量垃圾邮件,例如:
It means that whatever host you're using has disabled mail()
. Note that mail()
can be used to send out mass spam, for example:
while(true) {
mail('mymail@mail.com','Contact from',$message,$headers);
}
很多共享主机会限制 mail()
或完全禁用它。您必须就此问题与托管服务提供商联系。
A lot of shared hosts throttle mail()
or outright disable it. You'll have to contact your hosting provider about the issue.
这篇关于警告:出于安全原因已禁用mail()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!