WordPress.org

Ready to get started?Download WordPress

Forums

How to change the Email sender? (5 posts)

  1. mochaquest
    Member
    Posted 5 years ago #

    Hi,
    Every time a user register, an email will be sent because the password is in it, right? So, the email sender used is WordPress. How can I change the email sender to my own site, Mocha Quest?

    Thanks,
    Arrica Lee
    http://www.mochaquest.com

  2. buddha trance
    Member
    Posted 5 years ago #

    I checked and you are using 2.7, so this will work for you
    http://wordpress.org/support/topic/212442?replies=2

    Of course, you have to remember the change you made, every time you upgrade.

  3. mochaquest
    Member
    Posted 5 years ago #

    But, which part of the php code should i change?

  4. buddha trance
    Member
    Posted 5 years ago #

    As mentioned in that thread, look for /wp-includes/pluggable.php lines 354 and 976

    That means:

    Line 354 $from_email = 'wordpress@' . $sitename;. This line of code displays as wordpress@yourdomain.com. Change wordpress into admin, or whatever username you have as one of your domain accounts.

    Line 976 $wp_email = 'wordpress@' . preg_replace('#^www\.#', '', strtolower($_SERVER['SERVER_NAME']));. Again, change wordpress into one of your accounts.

    That means, the first part of your account only - username - without the @domain.com part.

  5. mochaquest
    Member
    Posted 5 years ago #

    Thanks a lot!!! I owe you one!

Topic Closed

This topic has been closed to new replies.

About this Topic