Was just trying to get some info on this – thanks.
The elements for the reg email are right there in wp-register.php (look for the $message variable assignments and wp_mail() function call).
Hi there. Maybe I am a dummy or something but I can not figure out how/were to customize the E-mail that is sent either. I would like to be able to add some more info to it.
When I register it send me an E-mail that says:
Subject: []
Your password is: *******
You can now login:*******
It would be nice to be able to change that and I have no idea how and can’t find any support for it out there on the net.
Maybe I am not looking in the right place. Can someone with some knowledge on this offer some help?
Thanks!
I changed by editing wp-register.php. Try to find these lines:
for ($i = 0; $i < strlen($pass1); $i = $i + 1) {
$stars .= '*';
}
$message = __('Login') . ": $user_loginrn";
$message .= __('Password') . ": $passwordrn";
$message .= get_settings('siteurl') . '/wp-login.php';
wp_mail($user_email, sprintf(__("[%s] Your login information"), get_settings('blogname')), $message);
Now you can edit that into something like this:
for ($i = 0; $i < strlen($pass1); $i = $i + 1) {
$stars .= '*';
}
$from = 'From: '.$_POST['weblog_title'].' <info@***.**>';
$message_headers = "$from";
$message = "Your registration has been successfully set up.
You can log in with the following information:
";
$message .= __('Login') . ": $user_loginrn";
$message .= __('Password') . ": $passwordrn";
$message .= "Don't forget to change your password after you login. You will be able to do this in your profile.
The Blog Team
";
$message .= get_settings('siteurl') . '';
wp_mail($user_email, sprintf(__("[%s] Your login information"), get_settings('blogname')), $message, $message_headers);