Project

General

Profile

Actions

Bug #24941

closed

encrypted SMTP: connection fails due to wrong datatypes

Added by Julian Hofmann almost 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2011-02-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Due to inconsequent datatypes within swiftmailer (and TYPO3), no encryted SMTP connection is possible.

In t3lib_mail_Mailer line 102 f. an instance of Swift_SmtpTransport is instantiated with BOOLEAN as third parameter, but the constructor expects an INT (according to the method description).
Afterward Swift_SmtpTransport calls Swift_Transport_EsmtpTransport::setEncryption() with this parameter, which expects a string as paramter (to be exact 'tls' or 'ssl'), and sets it as protocol for the connection.

Thus, we get a problem in /typo3_src-4.5.0/typo3/contrib/swiftmailer/classes/Swift/Transport/StreamBuffer.php in line 235 by trying to connect our mailserver via fsockopen(). The host is built as:
$host = $this->params['protocol'] . '://' . $host;
The host looks like "1://example.com".
As we know from above, $this->_params['protocol'] was never set as a valid protocol-string, instead it is still a BOOLEAN or INT or something casted to ...whatever - but _no
protocol.

php_sapi_name: cgi-fcgi
PHP_VERSION : 5.2.6-1+lenny9
(issue imported from #M17465)

Actions

Also available in: Atom PDF