Support » Fixing WordPress » Blog-By-Email wp-mail.php Problem

  • Resolved datlan

    (@datlan)


    I just installed WordPress 2.2 and decided to get Blog-By-Email working. When I try to execute wp-mail.php (via my specific URL), I get the following error:

    --- /usr/local/www/data/wordpress/wp-includes/class-pop3.php Thu Jun 7 18:18:08 2007 +++ ./wp-includes/class-pop3.php Fri Jun 15 01:40:49 2007 @@ -367,13 +367,19 @@ while ( !ereg("^\.\r\n",$line)) { $line = fgets($fp,$buffer); - if (preg_match("/^\s+/", $line) && $count > 0) { + if (preg_match("/^\s+\S+/", $line) && $count > 0) { $MsgArray[$count-1] .= $line; continue; } - if(empty($line)) { break; } + if ((ereg("^\.\r\n",$line)) || (empty($line))) { break; } + + //Strip any extra leading periods and store the result + if (ereg("^\.\.", $line)) { + $MsgArray[$count] = substr($line, 1); + } else { + $MsgArray[$count] = $line; + } - $MsgArray[$count] = $line; $count++; } return $MsgArray;
    Fatal error: Cannot instantiate non-existent class: pop3 in F:\hshome\myhost\blog\wp-mail.php on line 12

    Does anyone have any idea as to what could be wrong? Everything else appears to work correctly.

    Thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter datlan

    (@datlan)

    Never mind. I installed the class-pop3.php patch incorrectly.

    Sorry for bothering you.

Viewing 1 replies (of 1 total)
  • The topic ‘Blog-By-Email wp-mail.php Problem’ is closed to new replies.