Support » Installing WordPress » Email cannot be sent – no one can register or get pw

  • 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.

Viewing 15 replies - 1 through 15 (of 25 total)
  • 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?

    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.

    Any suggestions?

    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…

    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.

    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?

    jwork

    (@jwork)

    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:).

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

    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!

    Moderator James Huff

    (@macmanx)

    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.

    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.

    Moderator James Huff

    (@macmanx)

    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.

    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!

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘Email cannot be sent – no one can register or get pw’ is closed to new replies.