Notifications
Clear all

How to Change the "From email" Address, so that this plugin can be used with WP SES?

6 Posts
2 Users
0 Likes
776 Views
Posts: 3
Customer
Topic starter
(@sven-jasper)
Member
Joined: 3 years ago

I am Unable to send any emails using WP Offload SES via the WP Discuz PLugin, Regarding users being mentioned in the comment.

Upon investigation I found that the Sender address is "no-reply@{domain}.com".

 

How Can I Set my own Email Address so that the emails can start sending out?

Is there a field in the configuration or can I use a hook/function to change the value?

 

5 Replies
Elvina
Posts: 1403
(@elvina)
Support
Joined: 3 years ago

Hi @sven-jasper,

Is there a field in the configuration or can I use a hook/function to change the value?

This code should help you. 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. 

Reply
4 Replies
Customer
(@sven-jasper)
Joined: 3 years ago

Member
Posts: 3

Will This hook affect all the other plugins "Sender Address"?

Reply
Elvina
(@elvina)
Joined: 3 years ago

Support
Posts: 1403

@sven-jasper,

Will This hook affect all the other plugins "Sender Address"?

Yes.

Reply
Customer
(@sven-jasper)
Joined: 3 years ago

Member
Posts: 3

@elvina In That Case, Could you please provide a way that only Affects the WPDiscuz Plugin?

We would prefer if the other plugins do not have conflicts.

Thank you

Reply
Elvina
(@elvina)
Joined: 3 years ago

Support
Posts: 1403

@sven-jasper,

In That Case, Could you please provide a way that only Affects the WPDiscuz Plugin?

We're really sorry but there is no way to do that.

Reply
Share:
Scroll to top