How to change email senders name in phpbb3

Hondasxs

Hondasxs

Club Founder
Staff member
Lifetime Member
Supporting Member
Feb 13, 2013
18,452
66,869
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
924
Test
farmer700
F
Hondasxs
Replies
0
Views
875
Test
Hondasxs
Hondasxs

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

User Menu

Buy us a beer!

  • Lots of time and money has gone into making sure the community is running the best software, best designs, and all the other bells and whistles. Care to buy us a beer? We'd really appreciate it!

    Beer Fund!

    Club Membership!