From c16d36676f78ae7d0a8c23ce22d7501884de53ae Mon Sep 17 00:00:00 2001 From: robocoder Date: Sat, 7 May 2011 19:42:20 +0000 Subject: refs #2409 git-svn-id: http://dev.piwik.org/svn/trunk@4656 59fd770c-687e-43c8-a1e3-f5a4ff64c105 --- core/Mail.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'core/Mail.php') 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); } } -- cgit v1.2.3