Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Cinner, I think it has something to do with the new headers which are now standardly implemented. I also heard a story that because of these headers certain email providers reject it because they see it as spam. You migh want to look in that direction. And if you are looking for the mail funtion. You can find it in pluggable-functions.php.

    It seems that I also have the same problem. The strange thing is though that the mail which is send to the admin looks perfect and where the headers are fine. But the one send to the newly registered person has the headers in the mail itself.

    So far i haven’t figured out a solution. Maybe someone else can bring us the answers.

    I changed by editing wp-register.php. Try to find these lines:

    for ($i = 0; $i < strlen($pass1); $i = $i + 1) {
    $stars .= '*';
    }

    $message = __('Login') . ": $user_loginrn";
    $message .= __('Password') . ": $passwordrn";
    $message .= get_settings('siteurl') . '/wp-login.php';

    wp_mail($user_email, sprintf(__("[%s] Your login information"), get_settings('blogname')), $message);

    Now you can edit that into something like this:


    for ($i = 0; $i < strlen($pass1); $i = $i + 1) {
    $stars .= '*';
    }

    $from = 'From: '.$_POST['weblog_title'].' <info@***.**>';
    $message_headers = "$from";
    $message = "Your registration has been successfully set up.

    You can log in with the following information:

    ";
    $message .= __('Login') . ": $user_loginrn";
    $message .= __('Password') . ": $passwordrn";

    $message .= "Don't forget to change your password after you login. You will be able to do this in your profile.

    The Blog Team
    ";
    $message .= get_settings('siteurl') . '';

    wp_mail($user_email, sprintf(__("[%s] Your login information"), get_settings('blogname')), $message, $message_headers);

Viewing 4 replies - 1 through 4 (of 4 total)