Hi,
How can I change what the email address that email notifications are coming from? They are coming from wordpress@ourdomain.com, but I want them to come from a specific email address.
Thanks!
Charles
This is not wpDiscuz issue. wpDiscuz use WordPress default "from" email address. WordPress comes with wordpress@example.com default email. you should configure it using WordPress hooks. Put this code in active theme functions.php file:
function res_fromemail($email) {
$wpfrom = 'example@example.com'; return $wpfrom;
}
function res_fromname($email){
$wpfrom = get_option('blogname');return $wpfrom;
}
add_filter('wp_mail_from', 'res_fromemail');
add_filter('wp_mail_from_name', 'res_fromname');
Don't forget to change example@example.com to your specific address.
Oh.. wait a minute.. I just figured out what was happening!! It's NOT your email notification.. it's the WORDPRESS notification when you receive a comment ON YOUR POST.
SOOO sorry about the confusion! WPDisquz is doing what it's supposed to do PERFECTLY!
No problem, thank you for letting us know.
Tom,
This code look like it will come in handy very soon!!!