diff --git a/typo3/sysext/core/Classes/Mail/TransportFactory.php b/typo3/sysext/core/Classes/Mail/TransportFactory.php index 00c42bd41fff58886d15b1972c8f8bfaebd50e3f..e66ae792a7acde3169d0255a06544a927a5b04cf 100644 --- a/typo3/sysext/core/Classes/Mail/TransportFactory.php +++ b/typo3/sysext/core/Classes/Mail/TransportFactory.php @@ -98,7 +98,7 @@ class TransportFactory implements SingletonInterface, LoggerAwareInterface if ($host === '') { throw new Exception('$GLOBALS[\'TYPO3_CONF_VARS\'][\'MAIL\'][\'transport_smtp_server\'] needs to be set when transport is set to "smtp".', 1291068606); } - if ($port === null || $port === '') { + if ($port === null) { $port = 25; } else { $port = (int)$port;