Support » Fixing WordPress » Changing the Admin Sending Email Address

  • I installed WordPress from a script from my hosting provider via SimpleScripts. If someone registers on my blog, the email is sent from the admin email that is set in the WP Admin panel. When I use a certain plugin, friendsroll, emails are sent from the admin email address on my hosting account, which has nothing to do with my blog name.

    I want to change the sending address from xxx@hostmonster.com to an address that I designate. I’ve looked through all of the php files and the databases, but I’m not sure which files or DBs or tables to look through.

    I have talked to the plugin creator and he has no idea. I’ve also spoken with my hosting provider and they have no idea either.

    Please help me!

Viewing 15 replies - 1 through 15 (of 16 total)
  • This could just be a settings problem… Check the email address that is used under your settings tab. In WordPress 2.5+ you can find it under Settings->General.

    This may be different from the email address that you set up in your admin profile.

    (Also check Settings->Writing. Some plugins might use that email address.)

    Both of those settings are set to the address I want to use.

    I have read that WP likes to use the address wordpress@[domain].com, which is too generic for me.

    A manual WP install, rather than one installed with a hosting script, does exactly what I want. When WP is installed with a script, it takes info from the hosting provider, such as admin email and mail server info.

    Could this be an issue of the sending server? If so, where can I change that from localhost to the mail server for the address I want to use?

    Still looking…

    I’m having a similar issue. The email that my subscribers are receiving is not the same as what is set in the PROFILE or SETTINGS > GENERAL locations. Both of those are set to: support@mydomain.com.

    I spotted the same problem.

    I got to this thread by searching.

    But I have hit upon a solution. It requires tinkering with a WordPress core file though. If you are not comfortable with it, you may desist from doing it. I refer to WordPress 2.7 only.

    I found in pluggable.php in wp-includes around line 343:

    $from_name = 'WordPress';

    I changed it to:

    $from_name = $blog_title;

    Then around line 354:

    $from_email = 'wordpress@' . $sitename;

    I changed that to:

    $from_email = 'administrator@' . $sitename;

    That’s it.
    May be there is a more elegant way of doing it. Mine is a layman’s solution!

    HTH

    Regards,

    S.K

    Hi All,

    Is there a way to do this without modifying core files?

    BTW kichu, thanks a lot for posting a solution.

    Tnx kichu 🙂 now it is everything ok 🙂 working just fine 🙂

    Just an addendum, for anyone else who stumbles across this website looking for an answer to the issue of a Simplescripts install resulting in a mangled wordpress email address:

    I’ve just contacted my host over this (bluehost.com) who told me to create the default email address (wordpress@mydomain.com) in my cpanel. Apparently, if wordpress’s default email address doesn’t exist, then on bluehost.com wp_mail reverts to a username@host.com address.

    Hope that makes sense/helps!

    Now there is a plugin called “Mail From” to achieve this change!

    The plugin can be had from here.

    Have fun!

    S.K

    I have installed from both SimpleScripts and Fantastico and only have this problem with a SimpleScripts installation. Unfortunately, one of my hosting companies seems to have stopped updating Fantastico and I’m forced to use SimpleScripts. Well, I guess I could do a manual installation but who has time for that.

    The “Mail From” plugin did not work for me, but “New User Email” plugin did.

    Here ’tis: http://wordpress.org/extend/plugins/new-user-email-set-up/

    Now I have the same dang problem with new comment notification. When someone registers as a new user, the email is how I want it, but not the comment notification email. WTH?!

    I searched through the WP core files and also the database and found nothing to change.

    Anyone know how to get rid of/change this?

    I really have to stop posting on here before I find my own solution. I thought I was too tired to keep looking at the code for an answer.

    Here’s the solution.

    Edit this file: /includes/class-phpmailer.php

    Go to line 75 (2.7.1) and edit what is inside the quotes.

    It may say something like “localhost” or something.

    And on line 88, put your email again inside the empty quotes. This is the reply address you want to use.

    When I found this solution, I got tired of looking at the code, so I’m not sure if only one of those edits is needed or actually both. But when it worked, I stopped.

    I know this will help someone.

    Thanks so much! It worked for me!!!

    @ damselfly

    I too use Bluehost so your info was very helpful! Thanks!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Changing the Admin Sending Email Address’ is closed to new replies.