diff options
Diffstat (limited to 'phpBB/includes/functions_messenger.php')
| -rw-r--r-- | phpBB/includes/functions_messenger.php | 18 |
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; |
