WordPress.org

Support

Support » Miscellaneous » How to change the Email sender?

How to change the Email sender?

  • 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

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

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

    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.

    Thanks a lot!!! I owe you one!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to change the Email sender?’ is closed to new replies.
Skip to toolbar