Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/Mail.php12
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);
}
}