• Welcome to HONDASXS.com

    If you are a guest please take time to REGISTER with us. Stay up to date on the Honda Side by Side line and take part in our online forum. Check out the FAQ. Once you register you can start to make post. Users will respond to your question or statement. To start viewing messages, select the forum that you want to visit below or click the board index to see a list of all forums. Thanks and have fun.

How to change email senders name in phpbb3

Discussion in 'Test' started by Hondasxs, May 9, 2013.

  1. Hondasxs

    Hondasxs Club Founder
    Staff Member Moderator Lifetime Member Club Contributor

    Feb 13, 2013
    Likes Received:
    Charlotte, NC
    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
    if (empty($this->from))
    			$this->from =  '<' . $config['board_contact'] . '>';
    change it to this
    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.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice