duanjiashai9140 2014-05-12 07:22 采纳率: 0%
浏览 115
已采纳

警告:出于安全原因已禁用mail()[重复]

This question already has an answer here:

Good morning,

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

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?

And that's my line 57:

mail('mymail@mail.com','Contact from',$message,$headers);

Thanks,

Regards,

</div>
  • 写回答

1条回答 默认 最新

  • du59131 2014-05-12 07:32
    关注

    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);
    }
    

    A lot of shared hosts throttle mail() or outright disable it. You'll have to contact your hosting provider about the issue.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作