The MU forums have moved to WordPress.org

bare CRLF wp_mail problem (3 posts)

  1. Meister77
    Member
    Posted 18 years ago #

    There are some mail server, that reject the messages from WordPress.
    The problem is this: http://cr.yp.to/docs/smtplf.html

    I change the
    return @mail($to, $subject, $message, $headers);
    to
    return @mail($to, $subject, str_replace("\n", "\r\n", str_replace("\r\n", "\n", $message)), str_replace("\n", "\r\n", str_replace("\r\n", "\n", $headers)));

    in wp-includes\pluggable.php

  2. drmike
    Member
    Posted 18 years ago #

    Emails are being rejected because they're being labeled as being sent by the PHP mailer, not the normal STMP server.

    Ticket made though:

    http://trac.mu.wordpress.org/ticket/158

  3. Meister77
    Member
    Posted 18 years ago #

    Ok, thank you.

About this Topic

  • Started 18 years ago by Meister77
  • Latest reply from Meister77