Various modifications for phpBB3Use your board name in emails

Snippets for phpBB3
Previous topicNext topic
User avatar

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6222
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