diff options
author | robocoder <anthon.pang@gmail.com> | 2011-05-07 23:42:20 +0400 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2011-05-07 23:42:20 +0400 |
commit | c16d36676f78ae7d0a8c23ce22d7501884de53ae (patch) | |
tree | cba5f9985ba1c2c069b4e7d53a091e8288a5f292 /core/Mail.php | |
parent | 19b909b54ccd19592ffe104ce8f5fbf2241df99a (diff) |
refs #2409
git-svn-id: http://dev.piwik.org/svn/trunk@4656 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Mail.php')
-rw-r--r-- | core/Mail.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/Mail.php b/core/Mail.php index 93ce405fda..cf648daf13 100644 --- a/core/Mail.php +++ b/core/Mail.php @@ -53,15 +53,15 @@ class Piwik_Mail extends Zend_Mail ) { $smtpConfig = array( - 'auth' => $config->type, - 'username' => $config->username, - 'password' => $config->password, - 'ssl' => $config->encryption, + 'auth' => strtolower($config->type), + 'username' => $config->username, + 'password' => $config->password, + 'ssl' => $config->encryption, ); } - $tr = new Zend_Mail_Transport_Smtp($config->host,$smtpConfig); + $tr = new Zend_Mail_Transport_Smtp($config->host, $smtpConfig); Piwik_Mail::setDefaultTransport($tr); - ini_set("smtp_port",$config->port); + ini_set("smtp_port", $config->port); } } |