Notifications
Clear all

Emails are coming from wordpress@...com I don't want that. Where do I change it?

5 Posts
3 Users
1 Reactions
3,910 Views
(@chazzzzy)
Eminent Member
Joined: 9 years ago
Posts: 22
Topic starter  

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


   
Quote
 Tom
(@tomson)
Famed Member Admin
Joined: 10 years ago
Posts: 4214
 

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.


   
Della reacted
ReplyQuote
(@chazzzzy)
Eminent Member
Joined: 9 years ago
Posts: 22
Topic starter  

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!

 


   
ReplyQuote
 Tom
(@tomson)
Famed Member Admin
Joined: 10 years ago
Posts: 4214
 

No problem, thank you for letting us know.


   
ReplyQuote
(@della)
Eminent Member
Joined: 8 years ago
Posts: 43
 

Tom,

This code look like it will come in handy very soon!!!


   
ReplyQuote
Share:
Scroll to top