diff options
Diffstat (limited to 'core/Mail.php')
-rw-r--r-- | core/Mail.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Mail.php b/core/Mail.php index 12d97568f6..9825eb3378 100644 --- a/core/Mail.php +++ b/core/Mail.php @@ -110,7 +110,8 @@ class Mail extends Zend_Mail $smtpConfig['ssl'] = $mailConfig['encryption']; } - $tr = new \Zend_Mail_Transport_Smtp($mailConfig['host'], $smtpConfig); + $host = trim($mailConfig['host']); + $tr = new \Zend_Mail_Transport_Smtp($host, $smtpConfig); Mail::setDefaultTransport($tr); @ini_set("smtp_port", $mailConfig['port']); } |