2012-11-16, 01:23 AM
Hi.
Email messages sent by users shows their private email address as sender.
I'd llike to change it and use the BB email as a sender.
Any idea how to do it?
Thanks
RAF
It seems solved and it works for me.
Just edit /var/www/member.php and find two lines below:
1 line
Email messages sent by users shows their private email address as sender.
I'd llike to change it and use the BB email as a sender.
Any idea how to do it?
Thanks
RAF
It seems solved and it works for me.
Just edit /var/www/member.php and find two lines below:
1 line
//Original
$from = "{$mybb->user['username']} <{$mybb->user['email']}>";
//After change
$from = "{$mybb->settings['bbname']} <{$mybb->settings['adminemail']}>";
2 line
//Original
my_mail($to_user['email'], $mybb->input['subject'], $message, $from, "", "", false, "text", "", $mybb->user['email']);
//After change
my_mail($to_user['email'], $mybb->input['subject'], $message, $from, "", "", false, "text", "", $mybb->settings['adminemail']);