How to change comment notifications address (mail)?  

  RSS

dm1
 dm1
(@dm1)
Eminent Member
Joined: 3 months ago
Posts: 26
14/03/2019 11:30 pm  

Good day.

For mailing, I use the Amazon SES service and the WP Offload SES plugin for it. The "notification address" (WordPress Notification Email) is the address of notification@domail.com. As the "Reply To" address, notification@domail.com is also used.

All letters to users (about registration, password change, payment for access) come from notification@domail.com. But all new comment notifications (with WP Discuz plugin) come from no-reply@domain.com. Such emails are sent by some mail services in the "Sibscribes" (Newsletters) folder (this is almost like spam).

Amazon SES does not recommend using the address no-reply@domain.com and may block for their use.

How to make comment notifications (with WP Discuz plugin) go from notification@domail.com?


Quote
dm1
 dm1
(@dm1)
Eminent Member
Joined: 3 months ago
Posts: 26
14/03/2019 11:33 pm  

Some more info. When I put the WPDiscuz plugin, I still had (may be) the address of the no-reply@domain.com as the sender. Perhaps the WPDiscuz plugin remembered it.

After that, the notification@domail.com address is always used for sending.


ReplyQuote
Astghik
(@astghik)
Support Team Admin
Joined: 1 year ago
Posts: 2469
15/03/2019 2:38 pm  

Hi @dm1,

I'm going to ask the developers how we can help you in this case.  I'll update the topic within 4-5 hours. 

This post was modified 2 months ago by Astghik

ReplyQuote
Astghik
(@astghik)
Support Team Admin
Joined: 1 year ago
Posts: 2469
15/03/2019 3:18 pm  

@dm1,

This code should help you to solve the issue.  Add the code in your current active theme's functions.php file: 

add_filter('wp_mail_from', function ($email){
return 'no-reply@blogname.com';
});

Don't forget to change the red marked code (set the right email) before using. 


ReplyQuote
Share: