Support » Plugins » Custom WP lost password E-Mail

  • Hi,

    I was wondering… Which file do i need to edit to create a custom lost password e-mail? The default is fine but I would like to use the name of the blog too.

    Thanks,
    Ian

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m pretty sure you need to edit the wordpress/includes/pluggable.php file. Here’s the chunk of code you’re looking for:

    @wp_mail(get_option('admin_email'), sprintf(__('[%s] New User Registration'), get_option('blogname')), $message);
    
    	if ( empty($plaintext_pass) )
    		return;
    
    	$message  = sprintf(__('Username: %s'), $user_login) . "\r\n";
    	$message .= sprintf(__('Password: %s'), $plaintext_pass) . "\r\n";
    	$message .= site_url("wp-login.php", 'login') . "\r\n";
    
    	wp_mail($user_email, sprintf(__('[%s] Your username and password'), get_option('blogname')), $message);

    Just remember to have a backup of the original file! I modified it once and it screwed my website! It didn’t show up. It looks like the php version of your server checks for errors in this file, so be careful with it 🙂

    I looking for this too…
    Can someone help me please?

    I think that what Anonymous said is not the correct way…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom WP lost password E-Mail’ is closed to new replies.