The MU forums have moved to WordPress.org

How to change activation email!? (5 posts)

  1. lajevardi
    Member
    Posted 17 years ago #

    Hi guys,
    i've just create a test blog on my new wpmu installation,
    the activation link has been sent to new user email address from support@blogs.site.com.
    How can i change it? for example to no-reply@blogs.site.com

  2. Xen
    Member
    Posted 17 years ago #

    All the options for the activation email can be found in

    /wp-includes/wpmu-functions.php

    You want to find

    $message_headers = 'From: ' . $title . ' <support@' . $_SERVER[ 'SERVER_NAME' ] . '>';

    (It's near the bottom)

    and simply change it to

    $message_headers = 'From: ' . $title . ' <noreply@' . $_SERVER[ 'SERVER_NAME' ] . '>';

    It occurs twice in the file, both times it's near the bottom, so make sure you change both!

  3. drmike
    Member
    Posted 17 years ago #

    Hmm, actually I had the same issue and didn't realize it. Have to fix that sometime. :)

    Thanks,
    -drmike

  4. lajevardi
    Member
    Posted 17 years ago #

    Thank you dear Xen,
    but i've found that 4 times,
    thanks thanks thanks thanks ;)

  5. Xen
    Member
    Posted 17 years ago #

    4 times lol, thanks :-p

    This is why I should use find/replace ^_^

About this Topic