• Hi , i upgraded to wp 2.0 and now when a new user registers the password email is sent but using a weird (well not weird) email address ie wordpress@mydomain.net i do not have that set in my admin panel is there a reason or how do i go about setting the correct email address.i have gone through the options > general > and set my email but still no luck……Any luck ??

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m having the same headache! The mail address in Options > General has no effect… keeping getting wordpress@mysite.net

    Ok.. some digging and searching through the hords of php files… here is the hack:

    – All the settings you need are in /wp-includes/pluggable-functions.php
    – Go to line 119 – wordpress@ is HARDCODED!!!
    – Replace this line:
    “From: wordpress@” . preg_replace(‘#^www\.#’, ”, strtolower($_SERVER[‘SERVER_NAME’])) . “\n” .
    – With this line:
    “From: Your nice name here <youremail@blogurl.com” . “\n” .

    This is a HACK by a novice so if someone can help correct the code to map it towards the details in the Options / General settings this would be EXCELLENT!!

    This totally worked for me! But I had to NOT add the address after the @. When the test email arrived it had it twice. So this worked for me. /wp-includes/pluggable-functions.php

    if ( !function_exists('wp_mail') ) :
    function wp_mail($to, $subject, $message, $headers = '') {
    if( $headers == '' ) {
    $headers = "MIME-Version: 1.0n" .
    "From: myblogname<myblogname@" . preg_replace('#^www.#', '', strtolower($_SERVER['SERVER_NAME'])) . "n" .
    "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"n";
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘New user registration email’ is closed to new replies.