diff options
author | mattab <matthieu.aubry@gmail.com> | 2015-02-11 08:22:56 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2015-02-11 08:23:09 +0300 |
commit | af5b516cc566fa8e2d05bf98b6504cb8130e03e2 (patch) | |
tree | 607515d5a5a6129b2899870dfce86e9d63878fcb /core/Mail.php | |
parent | 75e1cf15f871ca85c84a597536e75348a1c96de9 (diff) |
Trim the hostname before sending email, fixes #7157
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']); } |