Notifications
Clear all

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

  RSS

chazzzzy
(@chazzzzy)
Eminent Member
Joined: 4 years ago
Posts: 22
27/03/2016 4:25 am  

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
 Tom
(@tomson)
Support Team Admin
Joined: 5 years ago
Posts: 3120
27/03/2016 4:45 am  

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 liked
ReplyQuote
chazzzzy
(@chazzzzy)
Eminent Member
Joined: 4 years ago
Posts: 22
27/03/2016 5:59 am  

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
 Tom
(@tomson)
Support Team Admin
Joined: 5 years ago
Posts: 3120
27/03/2016 9:06 pm  

No problem, thank you for letting us know.


ReplyQuote
Della
(@della)
Eminent Member
Joined: 3 years ago
Posts: 43
03/04/2017 6:52 am  

Tom,

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


ReplyQuote
Share: