• Can someone tell me how to change the “from” address in the email that goes out to users that sign up on my blog?

    Right now it’s an email address that looks like it comes from my host (Bluehost) but I don’t want that information out there. I want it to come from the domain name.

    Here is what the email looks like (I changed personal details to “BLOG NAME” “USERNAME” and “EMAIL”):

    Subject: [BLOG NAME] New User Registration
    From: [email protected]

    New user registration on your blog BLOG NAME:
    Username: USERNAME
    E-mail: EMAIL

    I want to change the “from” address.

    Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Have you tried changing the email address in your profile? Mine shows as “[email protected]”. In my profile I have my email address set as “[email protected]”. So it’s just switching out the first part.

    Thread Starter maudehayworth

    (@maudehayworth)

    Nope, I have a different email address there (I changed it to my gmail account). The one that is showing up is connected to Bluehost. I have never even seen box142.bluehost.com before as a domain so I’m puzzled.

    I’m not sure how your mail is being handled. I would try contacting the host as well.

    I am using bluehost for my wordpress blog and ran into the same issue at https://www.softwarelisted.com

    Short to the point solution:
    1. Create a “wordpress” email (ie. [email protected] ) on bluehost. This will make the email come out from [email protected]
    or
    2. Edit the wp_mail (defined in wp-includes\pluggable-functions.php) function to the user that you want the mail from . Change
    “From: wordpress@” . preg_replace(‘#^www\.#’, …
    to
    “From: PWRS@” . preg_replace(‘#^www\.#’, …

    make sure that [email protected] email exists.

    I am no php expert, but this is what I think is happening.

    The wp_mail function is called without setting the $headers variable when either sending the password to the new user or when sending the new user information to the administrator.

    The wp_mail sets the header to come from [email protected] email. If the [email protected] does not exists, it somehow picks this information from the machine which generates the email from [email protected]

    Hope this helps.

    I think the solution listed by Software listed is effective for older versions of WordPress because there aren’t those file calls in my copy of wp-mail (I have WP 2.1)…

    However, creating a WordPress email address helped — it’s still not the optimum solution, but it fixes the problem I had (which was the same as the one listed in the original note).

    Now if I could change the wording of the email….

    Thanks,

    Greg

    The solution from softwarelisted works for wordpress 2.1.2!!! Just open “pluggable.php” in wp-include, search and replace wordpress (you’ll find it 2 times) by any EXISTING email address (not including the @… part of course) that you’ve created in bluehost…

    Wow – super simple and it worked fine…

    THANK YOU!

    Greg, I agree – it’s the wording of the email I want to change. I want it to be customized with a full welcome message and some directions…

    thanks for the fix! I found the word ‘wordpress’ twice in my pluggable.php file and replaced with it with my own email user account name, and it worked!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘New User Registration email – how to change from address?’ is closed to new replies.