How to change email senders name in phpbb3

Hondasxs

Hondasxs

Club Founder
Staff member
Lifetime Member
Supporting Member
Feb 13, 2013
18,405
66,469
113
Charlotte, NC
HondaSxS.com
Ownership

  1. 1000-5

  2. Talon R
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
Code:
if (empty($this->from))
		{
			$this->from =  '<' . $config['board_contact'] . '>';
		}
change it to this
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.
 

Similar threads

F
Replies
3
Views
899
Test
farmer700
F
Hondasxs
Replies
0
Views
855
Test
Hondasxs
Hondasxs