• Ok have been working with my host as to why wordpress is not sending mail and this is the reply I got…

    It’s a php script sending as nobody.
    We do not block sending mail to hotmail.. or anyone for that matter.
    We do:
    Limit the total amount of sends to 300 per hour.. anything over this will not be sent.
    & using Nobody@ does not send mail…. nobody sending emails is 100% blocked.

    Most all PHP scripts try to send as nobody unless you have them fixed to do otherwise.
    Thank you,
    Nick

    How do you change the Nobody@ part of the script?

    cheers
    Paul V

Viewing 12 replies - 1 through 12 (of 12 total)
  • i am sure you have done this..

    but…

    try looking through your settings in the WP admin area and make sure there is no mention of “Nobody”

    like under the mail settings..

    hope that helps..

    Perhaps you might look at changing the “From: ” portion in the wp_mail function

    Thread Starter PaulV

    (@paulv)

    yep done that.

    but thanks for trying…

    any other suggestions?

    cheers
    Paul V

    Thread Starter PaulV

    (@paulv)

    @beel

    I looked through the wp_mail file and cannot find the from section you suggest?

    It is not a file but a function (going from memory, but as most people here know already, it is not very reliable 😉 within one of the files – don’t know which one but perhaps in functions.php. Though I would suspect the devs probably have the “from” set to the admin e-mail address. I will have to check the next time I get an e-mail from WP.

    Thread Starter PaulV

    (@paulv)

    @beel

    Thanks for that – I can not find the mail function as yet but if someone would kindly point me in the right direction or think this is done elsewhere, please let me know.

    cheers
    Paul V

    Thread Starter PaulV

    (@paulv)

    Has anyone got any ideas at all? this is getting frustrating…

    This is obvious, but in your WP Admin Panel, under Options, check to be sure you do have a viable email address there. That is the one that WP sets as your admin email and where all mail should go. Mine is set to blog@[mydomain.com].

    But even tho I have this set, and it’s working properly, when I’ve forgotten my password, and hit the “Forgot Password?” link, and then go about filling in my email, I get email from myself at “nobody@[mydomain.com]. And it comes to me anyway because all of my mail from any email address ending in [mydomain.com] is received by me — but are you saying you are not getting any mail at all?

    Have you sent some test emails to yourself to see if it’s a WP problem or a server problem?

    Good luck! And don’t forget to post any s0lutions here so others can benefit.

    Thread Starter PaulV

    (@paulv)

    The email i use is valid

    I get no emails when someone post nor when they join or with the “subscibe to this comment” plugin.

    I just tried this

    logged out and then used the lost password form and it said sent but no email and now I can not log into my own blog…

    ffs I have been messing with this for 2 weeks blahhhhhh

    my host says it blocks any email sending that comes from nobody@mydomain.com

    they say that all emails sent as nobody@…. are not sent and that most php scripts use this as a default so basically it has rendered it useless and I have no idea how to change the default nobody@ part or even where to find where it is generated….

    You need to change your functions.php file to read:

    function wp_mail($to, $subject, $message, $headers = '') {
    if( $headers == '' ) {
    $headers = "MIME-Version: 1.0\n" .
    + "From: " . get_settings('admin_email') . "\n";
    "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\n";
    }

    return @mail($to, $subject, $message, $headers);
    }

    + “From: ” . get_settings(‘admin_email’) . “\n”;
    is the important part for changing the From:

    This how you get rid of email from Nobody. Change the wp_mail part of the code (near the bottom of the page in the functions.php file which is located in the wp-includes folder to this below:

    function wp_mail($to, $subject, $message, $headers = ”) {
    if( $headers == ” ) {
    $headers = “From: ” . get_settings(‘admin_email’) . “\n”;
    “Content-Type: text/plain; charset=\”” . get_settings(‘blog_charset’) . “\”\n”;
    }

    return @mail($to, $subject, $message, $headers);

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘PHP sending as Nobody@….’ is closed to new replies.