首页 > wordpress, 技术 > WordPress中phpmailer文件有点错误

WordPress中phpmailer文件有点错误

2010年1月10日 DarkIce285 views 发表评论 阅读评论

WordPress2.7.1中的phpmailer文件是./wp-includes/class-phpmailer.php
在其513行有如下函数

  public function SmtpSend($header, $body) {
    include_once($this->PluginDir . 'class.smtp.php');
    $error = '';
    $bad_rcpt = array();
 
    if(!$this->SmtpConnect()) {
      return false;
    }

但文件class.smtp.php是不存在的,实际上该文件被命名成了class-smtp.php
改成

    include_once($this->PluginDir . 'class-smtp.php');

就可以了

转载请注明:转载自DarkIces.com
本文链接地址:http://dki.me/0e

相关文章:

  1. 添加blogger同步
  2. 空间同步测试完毕
  3. inove下安装WP Thread Comment的一个问题
  4. 增加同步到百度空间
  5. wordpress2.9.2太慢了
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.