diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-06-03 08:02:12 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-06-03 08:02:12 +0000 |
| commit | d40dd8eed2e09c83c92be8428b3d3db7901f1979 (patch) | |
| tree | 4f4783a9621917d9e15ad5e2fb60ffafbbf69147 /roundcubemail/program/include/rcube_smtp.php | |
| parent | d6d8a0feaca6c856d4ae549c9f0770aa5de9edcb (diff) | |
- Support dynamic hostname (%d/%n) variables in configuration options (#1485438)
git-svn-id: https://svn.roundcube.net/trunk@3701 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_smtp.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_smtp.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_smtp.php b/roundcubemail/program/include/rcube_smtp.php index 447143500..4525502db 100644 --- a/roundcubemail/program/include/rcube_smtp.php +++ b/roundcubemail/program/include/rcube_smtp.php @@ -73,7 +73,7 @@ class rcube_smtp 'smtp_timeout' => $RCMAIL->config->get('smtp_timeout'), )); - $smtp_host = str_replace('%h', $_SESSION['imap_host'], $CONFIG['smtp_server']); + $smtp_host = rcube_parse_host($CONFIG['smtp_server']); // when called from Installer it's possible to have empty $smtp_host here if (!$smtp_host) $smtp_host = 'localhost'; $smtp_port = is_numeric($CONFIG['smtp_port']) ? $CONFIG['smtp_port'] : 25; |
