maudehayworth
Member
Posted 5 years ago #
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: USERNAME@box142.bluehost.com
New user registration on your blog BLOG NAME:
Username: USERNAME
E-mail: EMAIL
I want to change the "from" address.
Thank you!
Have you tried changing the email address in your profile? Mine shows as "wordpress@mydomain.com". In my profile I have my email address set as "ryan@mydomain.com". So it's just switching out the first part.
maudehayworth
Member
Posted 5 years ago #
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.
softwarelisted
Member
Posted 5 years ago #
I am using bluehost for my wordpress blog and ran into the same issue at http://www.softwarelisted.com
Short to the point solution:
1. Create a "wordpress" email (ie. wordpress@yourdomain.com ) on bluehost. This will make the email come out from wordpress@YOURDOMAIN.com
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 PWRS@yourdomain.com 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 wordpress@YOURDOMAIN.com email. If the wordpress@YOURDOMAIN.com does not exists, it somehow picks this information from the machine which generates the email from YOURNAME@box142.bluehost.com
Hope this helps.
Shriekman
Member
Posted 5 years ago #
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
soswiss
Member
Posted 5 years ago #
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...
Shriekman
Member
Posted 5 years ago #
Wow - super simple and it worked fine...
THANK YOU!
sjeantet
Member
Posted 5 years ago #
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...
rolando1
Member
Posted 5 years ago #
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!