Hondasxs
Club Founder
Staff member
Lifetime Member
Supporting Member
When I sent a email through phpbb3 the email from name would always be the email name. For example, my email is [email protected] the from name would be admin. I was looking for a way to change this so when the email was received it would come from name= FORUM NAME. After some research I finally figured out how to do it and though I would post as I did not see another solution anywhere online. Yes it is a direct hack as I am unsure how to make a modx package.
Here is the hack.
FYI, I am using phpbb3 SEO Premod with other modx's installed.
In /includes/functions_messenger.php
around line 472 find
change it to this
Now when anyone receives a email from the admin within ACP it will read as coming from SITE NAME.
Where SITE NAME is the name of the forum.
Thanks.
Here is the hack.
FYI, I am using phpbb3 SEO Premod with other modx's installed.
In /includes/functions_messenger.php
around line 472 find
Code:
if (empty($this->from))
{
$this->from = '<' . $config['board_contact'] . '>';
}
Code:
if (empty($this->from))
{
$this->from = $this->vars['SITENAME'].'<' . $config['board_contact'] . '>';
}
Now when anyone receives a email from the admin within ACP it will read as coming from SITE NAME.
Where SITE NAME is the name of the forum.
Thanks.