Mail function

Hi Guys!

Nice tracking software!

I suggest you change core/Mail.php, line 48++, function initSmtpTransport to:


$smtpConfig = array();
if (!empty($config->type))
	$smtpConfig['auth'] = strtolower($config->type);
if (!empty($config->username))
	$smtpConfig['username'] = $config->username;
if (!empty($config->password))
	$smtpConfig['password'] = $config->password;
if (!empty($config->encryption))
	$smtpConfig['ssl'] = $config->encryption;

When building the array dynamically like I did, then you can leave out the SSL parameter and use a non-ssl mailserver. Otherwise (current version) you are embedding “ssl”->NULL and Zend cannot handle that.

Cheers!
Florian

kantan, can you please create a ticket in dev.piwik.org with your bug description, how to reproduce, and your suggested patch? thanks. see http://piwik.org/participate/development-process/#toc-how-to-submit-a-patch

Hi Matt,

sorry for the delay, didnt find the time…

here is the link to the ticket:
http://dev.piwik.org/trac/ticket/2562

Greetings,
Florian