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 = "hostname"
transport = "smtp"
port = 25
host = "non-ssl smtp server"
type = "Login"
username = "mail address"
password = "password"
encryption = "" #<- just leave it empty and a non-ssl connection can be made.
Keywords: mail ssl
Attachment: Patch for mail.php
MailPatch.patch
Sorry, did not use new-line correctly
Config can now look like:
[mail]
defaultHostnameIfEmpty = "hostname"
transport = "smtp"
port = 25
host = "non-ssl smtp server"
type = "Login"
username = "mail address"
password = "password"
encryption = "" //<- just leave it empty and a non-ssl connection can be made.
(In [5019]) Fixes #2562 Kuddos kantan for the patch!