Change the default WordPress "from" email address
Problem:
When a user registers, their password email is sent from "WordPress@yourdomain.com".
Not so professional looking is it?
WARNING: If you do this, keep in mind that you are messing with
WP core files. Do so at your own risk. Also, because this is a WordPress core file, you will have to do this again every time you upgrade.
You've been warned.
Solution:
Edit /
wp-includes/pluggable.php
Look for line 369 (or there abouts)
Code:
$from_email = 'wordpress@' . $sitename;
Replace wordpress with admin, or whatever username you have as one of your domain accounts. Mine looks like this:
Code:
$from_email = 'admin@' . $sitename;
Then look for line 1018 (or there abouts)
Code:
$wp_email = 'wordpress@' . preg_replace('#^www\.#', '', strtolower($_SERVER['SERVER_NAME']));
Once again, replace wordpress with admin, or whatever username you have as one of your domain accounts. Mine looks like this:
Code:
$wp_email = 'admin@' . preg_replace('#^www\.#', '', strtolower($_SERVER['SERVER_NAME']));
Nothing to it.
This is tested and working on WordPress 2.8.2 with ClassiPress 2.9.2
edit: woot! This was my 100th post!