WordPress.org

Ready to get started?Download WordPress

Forums

Email cannot be sent - no one can register or get pw (26 posts)

  1. antiduplicity
    Member
    Posted 9 years ago #

    No emails are being sent from my installation of WordPress 1.5 when new users try to register. When users forget their password and ask for it to be sent they see the following message on the screen.

    The e-mail could not be sent.
    Possible reason: your host may have disabled the mail() function...

    you can test this at http://blog.tersiocity.com

    With this problem, no one can reigster or post to me blog, which make it useless. Please advise and tell me how to fix.

  2. geoffb
    Member
    Posted 9 years ago #

    I'm having the same problem. Some users are receiving their passwords, and others are not.

    The email is being sent from an email address which technically belongs to my host (it's not my domain, but is sent from the server I'm hosted on), with a name of "Nobody."

    Is there a file I can edit to change the mail settings?

  3. JimmyB7
    Member
    Posted 9 years ago #

    Mail works OK when registering or notifying me of new comments, but when Retrieve Password is used the error is: "The e-mail could not be sent.
    Possible reason: your host may have disabled the mail() function..."

    Tried different fixes posted here but nothing seems to work so far.

  4. geoffb
    Member
    Posted 9 years ago #

    Any suggestions?

  5. upt1me
    Member
    Posted 9 years ago #

  6. ralph76
    Member
    Posted 9 years ago #

    I tried antiduplicity's link and as it seems, he fixed the problem. However, i still don't know, what to do exactly. I'm completely new to wordpress, but i'd like it for communication in uni courses.

    I hope someone can explain to me step by step what i have to do.
    Thanx in advance...

  7. geoffb
    Member
    Posted 9 years ago #

    Ralph,

    Did you try upt1me's link? It worked for me.

    (1) Open wp-includes/functions.php
    (2) Go to approx. line 1598
    (3) Between $headers = "MIME-Version: 1.0\n" . and "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\n";, add the following line:
    "From: " . get_settings('admin_email') . "\n";

    If you cannot get this working, email me for help in locating the aforementioned portion of the code. Email me at wordpress@geoffball.ca.

  8. --Sober
    Member
    Posted 9 years ago #

    I can't find function wp_mail in v.1.5.1.1. I'm not a PHP programmer and don't have an IDE for it but I can use 'Find'! Has this functionality been moved?

  9. jwork
    Member
    Posted 9 years ago #

    I was having the same problem and stumbled across a fix. I'm not a PHP expert, so I may not know of what I speak. But in PHP 4, you could send an email with parameter " from: someemail@somwhere.com". It seems in PHP 5 it doesn't like the space. You have to put the email address directly after "from:" with no space.

    So the fix is as follows (for WP 1.5.1.2 on Win32 using PHP 5)
    Open /includes/pluggable-functions.php and find function wp_mail (about line 61 for me). Change:

    "From: " . get_settings('admin_email') . "\n" .

    to

    "From:" . get_settings('admin_email') . "\n" .

    (remove the space after From:).

  10. StarSaber
    Member
    Posted 9 years ago #

    The "From: " fix worked here, it might should be changed in the next release. =) I'm also on PHP5.

  11. nl4045
    Member
    Posted 8 years ago #

    I have that problem as well.
    Newest version, tried all above suggestions but still the users dont get their email with the password.
    When users try the 'password lost' option they do get a new one emailed to them.
    I also get the email that a new user is registred.
    Everything works... except the first introduction email is not arriving.
    Entire blog is perfect, everything working... just that last little detail is frustrating me as I cant really invite new users.
    Help!

  12. nl4045
    Member
    Posted 8 years ago #

    But email works fine, password is send if you request it to be send to you, admin receives the messages, configuration is good.
    ONLY when I create a new user, he/she doesnt receive a message with their password and login name.

  13. Beel
    Member
    Posted 8 years ago #

    Thankgoodness ;-) I prefer it that way as then I have the option of telling them or sending them an e-mail - believe it or not, but some users on sites I manage don't have email and don't want one.

  14. Newly registered users only receive password and registration information if they register themselves through the wp-register.php form. They will receive no email notification of any kind if you manually register them through the "Add New User" section of the Users menu. If you choose to do this, you must give them a simple password (so they can change it themselves after logging in) and manually send your own email notification.

  15. Beel
    Member
    Posted 8 years ago #

    I may decide to "lock out" a user by changing their password while we resolve an issue - a lot of good that will do if an email is sent to them each time I do that!

  16. nl4045
    Member
    Posted 8 years ago #

    But it makes sense to send someone a email when they are registered by the admin, of course later they should be block-able.

  17. Nah, I like Beel's reasoning better. If they want to receive an email, they can register themselves.

  18. Beel
    Member
    Posted 8 years ago #

    Some of my users do not have e-mail and in other situations security is an issue so I want to tell them in person what their password is. Not very secure if I tell them and a password is sent anyway.

  19. nl4045
    Member
    Posted 8 years ago #

    Can I moderate who joins and who doesnt?

  20. Yes and no. Newly registered members are registeed with a user level of 0, which means that they can't do anything to your blog other than comment if you have the "Users must be registered and logged in to comment" feature enabled. And, registered users can always be deleted.

    Honestly, if you have already chosen who you want to register, just temporarily enable the "Anyone can register" feature for them, and then disable it as soon as their done.

  21. nl4045
    Member
    Posted 8 years ago #

    But people who register automatically ave level 2 and can post whatever they like.

  22. Hm, not on my blog. All of my registered users arrive with a user level of 0. What version of WordPress are you running?

  23. Beel
    Member
    Posted 8 years ago #

    Options|Writing|New Users May Publish Articles is probably checked.

  24. nl4045
    Member
    Posted 8 years ago #

    thank you all very much, I know what I needed to know.
    Thanks for being patient with me ;)

  25. runninggeek
    Member
    Posted 8 years ago #

    About halfway through this thread somehow the topic was changed. It seems that there are inconsistent results with regards to new users receiving email notifications of their passwords.

    I currently receive email as the admin for my users but they don't get the email of their password. Oddly enough if I request a lost password it sends them an email to get their new password but not the new password email. I have attempted to look at all of the related suggestions on this page. No luck. Does anyone have any further suggestions?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.