WordPress.org

Ready to get started?Download WordPress

Forums

How: Modify message - Initial Email sent on registration (5 posts)

  1. jetshack
    Member
    Posted 9 years ago #

    How do I modify the initial email which WordPress sends when a user registers... the one that contains their initial password.

    I'd like to be able to add a couple of instructions and explanations to that msg.

  2. MichaelH
    Member
    Posted 9 years ago #

    Looks like you'd need to change wp-register.php. Make sure you make a backup of that file before changing it just in case.


    $message = sprintf(__('Username: %s'), $user_login) . "\r\n";
    $message .= sprintf(__('Password: %s'), $password) . "\r\n";
    $message .= get_settings('siteurl') . "/wp-login.php\r\n";

  3. xtheunderdog
    Member
    Posted 8 years ago #

    I've tried modifying that part of the code about ten different ways for at least an hour and have had no success. If someone could tell me how to produce this output, I'd be highly appreciative:

    "You can login with the following information:
    Username: blahblah
    Password: blahblah

    Hello and welcome to the CHS Quote Book! I'd just like to make sure you've read the about page and are aware of the format and I figured I'd fill you in on a tip or two as well.

    When you go to the "Write" tab, fill in the subject as Quote #XXX, and the Post section as follows:

    <blockquote> "The quote"
    <em> -- Person </em>
    </blockquote>
    <!--more-->
    Explanation of quote if necessary.

    You can do this by clicking the b-quote button (and subsequently getting rid of the space that appears about the tag), typing in the quote, pressing enter, clicking the i button, typing in the originator (-- Person), clicking the i button again, clicking the b-quote button again and then, if you need to explain the quote for whatever reason, press enter, click the more button, press enter again, and explain the quote.

    Once you've typed up the entry, choose the categories that apply on the right-hand side. If the category you need is missing, write a note at the bottom of your entry telling me what category is needed and I will take care of it ASAP.

    Hopefully this makes complete sense to you, and if you have any questions, feel free to ask. Have fun and let's get this quote book moving!

    -Elyse
    my email

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

    Sorry to be a bother, but I've seriously tried to make this work a ton of times and have had no luck.

  4. nathanrdotcom
    Member
    Posted 7 years ago #

    To do that, edit wp-register.php, under the loop:

    <?php if ( isset($errors) ) : ?>
    <?php endif; ?>

    and before this:
    <form method="post" action="wp-register.php" id="registerform">

  5. Dgold
    Member
    Posted 7 years ago #

    Thanks for this tip, I'm going to try it. Have been wondering the same thing, for quite some time.

    1 thing I'm not sure, anyone got a tip for how to preserve this hack when WP gets an Upgrade? There seem to be frequent upgrades, and everytime it over-writes any changes I made in the core files. :(

Topic Closed

This topic has been closed to new replies.

About this Topic