[BUGFIX] Autoloader Cache is not updated
[Packages/TYPO3.CMS.git] / t3lib / mail / class.t3lib_mail_mailer.php
index 502db0b..815d978 100644 (file)
@@ -35,8 +35,6 @@ require_once(PATH_typo3 . 'contrib/swiftmailer/swift_required.php');
  * This will use the setting in TYPO3_CONF_VARS to choose the correct transport
  * for it to work out-of-the-box.
  *
- * $Id$
- *
  * @author     Ernesto Baschny <ernst@cron-it.de>
  * @package TYPO3
  * @subpackage t3lib
@@ -99,7 +97,7 @@ class t3lib_mail_Mailer extends Swift_Mailer {
                                if ($port === '') {
                                        $port = '25';
                                }
-                               $useEncryption = ($mailSettings['transport_smtp_encrypt'] ? TRUE : FALSE);
+                               $useEncryption = ($mailSettings['transport_smtp_encrypt'] ? $mailSettings['transport_smtp_encrypt'] : NULL);
 
                                        // Create our transport
                                $this->transport = Swift_SmtpTransport::newInstance($host, $port, $useEncryption);