Opened 3 years ago

Closed 3 years ago

#2562 closed Bug (fixed)

Mail with support for non-ssl connections

Reported by: kantan Owned by:
Priority: normal Milestone: 1.6 Piwik 1.6
Component: Core Keywords: mail ssl
Cc: Sensitive: no

Description

When building the array in core/mail.php line 48++ dynamically like I did, then you can leave out the SSL parameter in the config file and use a non-ssl mailserver. Otherwise (current version) you are embedding "ssl"->NULL and Zend cannot handle that.

Config can now look like:
[mail]
defaultHostnameIfEmpty = "[your hostname]"
transport = "smtp"
port = 25
host = "[your non-ssl smtp server]"
type = "Login"
username = "[your mail address]"
password = "[your password]"
encryption = "" #<- just leave it empty and a non-ssl connection can be made.

Attachments (1)

MailPatch.patch (986 bytes) - added by kantan 3 years ago.
Patch for mail.php

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by kantan

Patch for mail.php

comment:1 Changed 3 years ago by kantan

Sorry, did not use new-line correctly

Config can now look like:
[mail]
defaultHostnameIfEmpty = "[your hostname]"
transport = "smtp"
port = 25
host = "[your non-ssl smtp server]"
type = "Login"
username = "[your mail address]"
password = "[your password]"
encryption = "" <- just leave it empty and a non-ssl connection can be made.

comment:2 Changed 3 years ago by matt (mattab)

  • Milestone set to 1.6 Piwik 1.6

comment:3 Changed 3 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

(In [5019]) Fixes #2562 Kuddos kantan for the patch!

Note: See TracTickets for help on using tickets.