anweisong 2015-10-18 09:18 采纳率: 100%
浏览 1611
已采纳

请问,各位,我的网站出现这个,怎么解决啊?

我的网站一点击注册就出现这个。。SMTP Error: Could not authenticate. 请问各位大哥,这是什么原因恩?怎么解决啊,谢谢啊

  • 写回答

1条回答

  • 软件破坏专家 2015-10-18 11:57
    关注

    mail()函数被禁用,所以只能找相关的插件来解决。这个大部分是由于服务端口被限制出现的,屏蔽不解决可以直接配置smtp即可。如果要解决这个问题的话需要修改文件:
    includes/class.smtp.php 文件
    把 @fsockopen 改成 @pfsockopen
    $this->smtp_conn = @fsockopen(
    $host, // the host of the server
    $port, // the port to use
    $errno, // error number if any
    $errstr, // error message if any
    $tval); // give up after ? secs
    // verify we connected properly
    改成
    $this->smtp_conn = @pfsockopen(
    $host, // the host of the server
    $port, // the port to use
    $errno, // error number if any
    $errstr, // error message if any
    $tval); // give up after ? secs
    // verify we connected properly

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

报告相同问题?