aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_messenger.php
diff options
context:
space:
mode:
authorMarkus Stenudd <stenudden@gmail.com>2013-11-30 16:01:26 +0100
committerOliver Schramm <oliver.schramm97@gmail.com>2014-04-17 13:30:48 +0200
commit40c685e6fcbe3e5e9d2626f2b5ce46b6665d8a33 (patch)
treeebe90bf01b524f2e6fa157b45a5bb95b3c91356d /phpBB/includes/functions_messenger.php
parent0da5e3bee9567138431d097aa1a4bea6d1fe2281 (diff)
downloadforums-40c685e6fcbe3e5e9d2626f2b5ce46b6665d8a33.tar
forums-40c685e6fcbe3e5e9d2626f2b5ce46b6665d8a33.tar.gz
forums-40c685e6fcbe3e5e9d2626f2b5ce46b6665d8a33.tar.bz2
forums-40c685e6fcbe3e5e9d2626f2b5ce46b6665d8a33.tar.xz
forums-40c685e6fcbe3e5e9d2626f2b5ce46b6665d8a33.zip
[ticket/8558] Add display name in emails from board
PHPBB3-8558
Diffstat (limited to 'phpBB/includes/functions_messenger.php')
-rw-r--r--phpBB/includes/functions_messenger.php18
1 files changed, 16 insertions, 2 deletions
diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php
index 907252f6d8..ddbceae4de 100644
--- a/phpBB/includes/functions_messenger.php
+++ b/phpBB/includes/functions_messenger.php
@@ -486,12 +486,26 @@ class messenger
if (empty($this->replyto))
{
- $this->replyto = '<' . $config['board_contact'] . '>';
+ if ($config['board_contact_name'])
+ {
+ $this->replyto = '"' . mail_encode($config['board_contact_name']) . '" <' . $config['board_contact'] . '>';
+ }
+ else
+ {
+ $this->replyto = '<' . $config['board_contact'] . '>';
+ }
}
if (empty($this->from))
{
- $this->from = '<' . $config['board_contact'] . '>';
+ if ($config['board_contact_name'])
+ {
+ $this->from = '"' . mail_encode($config['board_contact_name']) . '" <' . $config['board_contact'] . '>';
+ }
+ else
+ {
+ $this->from = '<' . $config['board_contact'] . '>';
+ }
}
$encode_eol = ($config['smtp_delivery']) ? "\r\n" : $this->eol;