• What file in the database has the coding for what is worded on the e-mail sent out to users once they register?

    You know, the e-mail that goes out that has their temporary password on it.

    I’d like to add some words to it, but I need to know where to start.

Viewing 15 replies - 1 through 15 (of 17 total)
  • It’s function wp_new_user_notification in wp-includes/pluggable-functions.php, which is nice, because that means you can re-declare the function wp_new_user_notification in a plugin to do what you want.

    Thread Starter badkarma9000

    (@badkarma9000)

    Was this the case in 1.5.2 by chance? I can’t seem to find the function.

    No, it was not the case in 1.5.2. That function did not exist.

    Thread Starter badkarma9000

    (@badkarma9000)

    For WP 1.5.2, how is the text decided? Because the default is:

    User:
    Password:

    And then a nasty convoluted hyperlink to the login page. I’d like to change the hyperlink to make it pretty.

    Thread Starter badkarma9000

    (@badkarma9000)

    I’m bringing this up again because it’s a really crucial part of the admin I’d like to edit.

    Does anyone know where the function is that controls how the registration e-mails look?

    I’m using WP 1.5.2

    Look around line 80 in wp-register.php.

    Also consider upgrading to at least 1.5.3.

    Please make copies of files (scripts) before changing them.

    Thread Starter badkarma9000

    (@badkarma9000)

    Is it the $message lines?

    Thread Starter badkarma9000

    (@badkarma9000)

    Also, I might actually be on 1.5.3 I’ll have to check.

    I just know I’m not at the point where the function is in the pluggable functions.

    Thread Starter badkarma9000

    (@badkarma9000)

    I figured it out… How would I just add a line to the message that says, “Visit my blog at My Website

    Right now, the language for lines of the e-mail are:

    $message .= sprintf(__(‘Password: %s’), $password) . “\r\n”;

    Any ideas? I’m aaaaaalmost there ??

    There are more lines writing the text of the email than just that one.

    But using it as an example:

    $message .= sprintf(__('Password: %s'), $password) . "rn Visit my blog at http//mydomain.com/ rn";

    Might work?

    well so much for using backticks to preserv code… those rn’s should be \r\n of course.

    Thread Starter badkarma9000

    (@badkarma9000)

    Handy-

    Eep, I’m confused some more… Can you repost that code with the proper rn syntax?

    Thread Starter badkarma9000

    (@badkarma9000)

    Also, the password stuff shouldn’t be on there, right?

    yes, the password stuff should still be there if you want your newly registered user to know it…

    Thread Starter badkarma9000

    (@badkarma9000)

    I mean the password stuff is on another line… should I have it on this one too?

    In total, the e-mail message block of code looks kind of like:

    $message .= sprintf(__(‘Username: %s’), $username) . “\r\n”;

    $message .= sprintf(__(‘Password: %s’), $password) . “\r\n”;

    $message .= sprintf(__(‘Website:’), . “a bunch of stuff i don’t recognize\r\n”;

    The end result e-mail looks like:

    Username: Jefferson
    Password: 2kss9a
    https://www.mywholewebsite.com/nastyurl/stuffidontwantthemtosee/wp-login.php

    I’d like it to look like:

    Username: Jefferson
    Password: 2kss9a

    You can login at: “www.mywebsite.com”

    So I just need to change that last line of code out of those 3, but I’m wondering what I need to change it to, exactly.

    Any help is great, Han!

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘E-Mail Notification of Password’ is closed to new replies.