Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

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

3 Posts
3 Users
1 Reactions
997 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: 1522
(@tutrix)
Noble Member
Joined: 5 years ago
st7878
Posts: 115
(@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