Support » Installing WordPress » email with PW not received sometime

  • My problem: Some Users trying to register do not receive the email verifiying registration with the random password.

    Facts: I am self hosting on my personal PC. I received the email as admin and when I registered myself as a user other than admin I received both the email addressed to administrator and that to me as newuser. Notably both go to the same ISP ( and that is where my SMTP? (if that is the right initials) goes. I registered my wife and watched the NORTON popup scan the two outgoing posts after which my registration screen was treated to a “500” error. But both emails were sent and both received still at a NETINS email address. Others (non-netins) are not getting the email. I suspect the problem as one other person said was that some of the emails are being accepted by the mailserver and others are not. I don’t know where to look for the error logs (Windows X-P, Apache?) Suggestions?

Viewing 9 replies - 1 through 9 (of 9 total)
  • More on this problem. I installed WP Mail SMTP WordPress plugin The first time I tried a test registration it went all the way through no errors (previously it had been giving me a HTTP 500 error) BUT no email went anywhere. I realized that I needed to update the plugin with SMTP info I went and did that sent the test message (it was sent and received at my gmail account) I then registerd to the gmail account. It did send a message to the admin account (not gmail) but there was a HTTP 500 error and no message was sent to the gamail account. So essentially no diference whether I am use the sendmail function or SMTP

    Ideas or sugestions??

    Okay I’m just going to add I did the upgrade to 2.3.1 and there was no improvment. Email Notices are going to the admin address but not back to the user that registers. Every other part of this is going so well I hate to have this hanging around.

    I traced through this and IDed the problem, created a work-a-round. Here is the problem Only one email is sent the second results in a system 500 error. I went in to the module wp_new_user_notification found in pluggables.php in wp-include, and changed it so the notice to to the new user goes first and cancelled the notice to the admin on new users with password. Code follows:

    if ( !function_exists('wp_new_user_notification') ) :
    function wp_new_user_notification($user_id, $plaintext_pass = '') {
    	$user = new WP_User($user_id);
    	$user_login = stripslashes($user->user_login);
    	$user_email = stripslashes($user->user_email);
    	$message  = sprintf(__('Username: %s'), $user_login) . "\r\n";
    	$message .= sprintf(__('Password: %s'), $plaintext_pass) . "\r\n";
    	$message .= get_option('siteurl') . "/wp-login.php\r\n";
        if ( !empty($plaintext_pass) )
      	wp_mail($user_email, sprintf(__('[%s] Your username and password'), get_option('blogname')), $message);
    	$message  = sprintf(__('New user registration on your blog %s:'), get_option('blogname')) . "\r\n\r\n";
    	$message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n";
    	$message .= sprintf(__('E-mail: %s'), $user_email) .  "\r\n";
        // Until better fix comes along don't tell admin about new registraton
        if ( empty($plaintext_pass) )
       	wp_mail(get_option('admin_email'), sprintf(__('[%s] New User Registration'), get_option('blogname')), $message);

    My change to the original fuction is the order of the notification and then eliminating the notice to admin which saves the 500 error ===> clean termination. I might look into adding a cc to Admin if I can but for now this works.
    I hope this helps someone else. It does not solve the problem: why do two calls in a row to the mail function get an HTTP 500 error? I verified this was the case by trying to send two identical messages in a row. Also I killed my Norton and tried again smae result.

    Check your Apache error logs, you should see an explanation of why you’re getting a 500 error in there. If you’re using the WP Mail SMTP plugin, your mail will not use the local mail() command, so it shouldn’t be a problem related to that.

    Try creating a test file like this, then call it from your browser.

    <?php for ($i=0; $i<5; $i++) {
    	$result = mail('to_email_address','Test mail no ' . $i,'This is a test email, please delete and ignore.');
    	print ("Mail no " . $i . "\n");
    } ?>

    It should generate 5 emails in a row, printing the result after each one. Might shed some light on the problem.

    Good luck – Callum.

    I am having problems with the password not being sent to new users that register themselves. I tried the fix posted by GlennMetcalf and it did not work. My web hosting service support stated that the mail logs indicate that the reason it is doing that is because the from address in the mail registration form is not valid on the server.

    Hello! Thanks to everyone who has been working on this issue.

    I implemented the code listed above, but my new user registration still does not send emails. Also, no email is sent when I create a new password in the user admin area. My guess is that the two are related, but since I am no code wiz, my abilities to solve the problem are limited.

    Any ideas???


    I have the same problem, and this fix did not solve the problem…

    What could i do, please help ^^

    We are experiencing similar problems with WordPressMU and using wp-phpmailer plugin.

    New registrants DO receive their passwords via email.

    BUT, admins are not notified when comments are posted. The Discussion tab is configured correctly for this to happen.

    Any suggestions?

    hey, not sure if this is obvious, but do you have phpmail() enabled?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘email with PW not received sometime’ is closed to new replies.