WordPress.org

Ready to get started?Download WordPress

Forums

Changing the Admin Sending Email Address (17 posts)

  1. pclove
    Member
    Posted 5 years ago #

    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!

  2. VelvetBlues.com
    Member
    Posted 5 years ago #

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

  3. pclove
    Member
    Posted 5 years ago #

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

  4. mbeazley
    Member
    Posted 5 years ago #

    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.

  5. S.K
    Member
    Posted 5 years ago #

    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

  6. zigx
    Member
    Posted 5 years ago #

    Hi All,

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

  7. zigx
    Member
    Posted 5 years ago #

    BTW kichu, thanks a lot for posting a solution.

  8. tnegulic
    Member
    Posted 5 years ago #

    Tnx kichu :) now it is everything ok :) working just fine :)

  9. damselfly
    Member
    Posted 5 years ago #

    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!

  10. S.K
    Member
    Posted 5 years ago #

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

    The plugin can be had from here.

    Have fun!

    S.K

  11. psumberg
    Member
    Posted 5 years ago #

    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.

  12. pclove
    Member
    Posted 5 years ago #

    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/

  13. pclove
    Member
    Posted 5 years ago #

    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?

  14. pclove
    Member
    Posted 5 years ago #

    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.

  15. paj
    Member
    Posted 4 years ago #

    Thanks so much! It worked for me!!!

  16. pvito
    Member
    Posted 4 years ago #

    @ damselfly

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

  17. saberlight
    Member
    Posted 4 years ago #

    Finally! I've been searching forever for this solution.

Topic Closed

This topic has been closed to new replies.

About this Topic