Scheduled Maintenance: 10-11-2025 Electricity company maintenance between 09:00 and 15:00.

Various modifications for phpBB3Use your board name in emails

Snippets for phpBB3
Previous topicNext topic
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6469
Joined: Jan 13th, '14, 20:45
    unknown unknown

Use your board name in emails

Post by dmzx »

Use your board name in emails.

Open /includes/functions_messengers.php
Find This may be a partial find and not the whole line

Code: Select all

    if (empty($this->replyto))
            {
                $this->replyto = '<' . $config['board_contact'] . '>';
            }

            if (empty($this->from))
            {
                $this->from = '<' . $config['board_contact'] . '>';
            }

            $encode_eol = ($config['smtp_delivery']) ? "\r\n" : $this->eol;
Replace with Replace the preceding lines with the following

Code: Select all

    $encode_eol = ($config['smtp_delivery']) ? "\r\n" : $this->eol;

            if (empty($this->replyto))
            {
                $this->replyto = mail_encode($config['sitename'], $encode_eol) . ' <' . $config['board_contact'] . '>';
            }

            if (empty($this->from))
            {
                $this->from = mail_encode($config['sitename'], $encode_eol) . ' <' . $config['board_contact'] . '>';
            }

Previous topicNext topic