Notifications
Clear all

wpForo 1.x.x [Solved] How to change "email from"

3 Posts
3 Users
1 Reactions
835 Views
Posts: 8
Topic starter
(@germanjv)
Eminent Member
Joined: 4 years ago

Despite I wrote my email to the "email settings" inside the "email from" place, It's sending registration emails from wordpress@mysite.com

 

Any idea how to change it? Some emails go to spam and I think that can be the reason.

 

thanks in advance.

2 Replies
Tutrix
Posts: 1526
(@tutrix)
Noble Member
Joined: 5 years ago
st7878
Posts: 111
(@aima-forum)
Estimable Member
Joined: 5 years ago

i did so. add code to functions.php your theme

function custom_mail($email) { return 'no-reply@domen.com'; }
function custom_name($email){ return 'Forum bla bla bla'; }
add_filter('wp_mail_from', 'custom_mail');
add_filter('wp_mail_from_name', 'custom_name');

*no-reply@domen.com - the email you want (needed)

**Forum bla bla bla - this text will be displayed in the "email subject" field