diff options
Diffstat (limited to 'core/Mail.php')
-rw-r--r-- | core/Mail.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/core/Mail.php b/core/Mail.php index 4dbac28cb4..526cd083de 100644 --- a/core/Mail.php +++ b/core/Mail.php @@ -49,15 +49,17 @@ class Piwik_Mail extends Zend_Mail return; } $smtpConfig = array(); - if ( !empty($config->auth->type) - || !empty($config->auth->username) - || !empty($config->auth->password) + if ( !empty($config->type) + || !empty($config->username) + || !empty($config->password) + || !empty($config->security) ) { $smtpConfig = array( - 'auth' => $config->auth->type, - 'username' => $config->auth->username, - 'password' => $config->auth->password + 'auth' => $config->type, + 'username' => $config->username, + 'password' => $config->password, + 'ssl' => $config->security, ); } |