• After upgrading to the 5/10 nightly build, and then to version 1.2 delta, the auto-emails that notify me of new comments have stopped appearing as “from” whoever sent them. Now, they come in with a blank “from” field, and the line that should be the “from” field appears inside the body of the email. Has anyone else experienced this? I generally use Eudora 4.3 to read the emails, but I get the same problem when using Cox’s web-based interface.

Viewing 4 replies - 1 through 4 (of 4 total)
  • there’s an extra new line getting put into the headers; email headers cannot have blank lines. Thus, your Eudora (and mine) don’t see the From: line as being a From: line. I reported this earlier, but I’ve not been able to figure out what in the email function is doing this.

    Has anyone solved this problem? I am getting slightly annoyed at this…

    try this, if you dare! ??
    I make this change in:
    root->wp-include-> function.php – find this function wp_notify_postauthor(..
    change the original:
    $message_headers = "MIME-Version: 1.0\r\n"
    . "$from\r\n"
    . "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\r\n";

    whit this (delete “mime” section)
    $message_headers = "$from\r\n"
    . "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\r\n";

    I’m sorry for bringing up an old topic. I’m new here and not sure whether this is desirable or not.
    First of all, great software! I practically fell in love with WordPress since it suits my needs perfectly. ??
    Anyway, this problem, mentioned by xrlq, still exists in v1.2 and my solution is kind of similar to that of unclePino’s.
    Open wp-includes/functions.php.
    Replace the original lines 999-1001:
    $message_headers = "MIME-Version: 1.0\r\n"
    . "$from\r\n"
    . "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\r\n";

    with:
    $message_headers = "MIME-Version: 1.0\n"
    . "$from\n"
    . "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\n";

    As you can see, I deleted the “\r” in all three lines. After that, the “From:” field is displayed correctly and the defined charset is actually used.
    You can make a similar adjustment in the lines 1039-1041, if you use comment approval.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘emails notifying of comments’ is closed to new replies.