Fixed bug #17662: Remove deprecated class gzip_encode
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_htmlmail.php
index efb7117..e5302b7 100644 (file)
@@ -2,7 +2,7 @@
 /***************************************************************
  *  Copyright notice
  *
- *  (c) 1999-2010 Kasper Skårhøj (kasperYYYY@typo3.com)
+ *  (c) 1999-2011 Kasper Skårhøj (kasperYYYY@typo3.com)
  *  All rights reserved
  *
  *  This script is part of the TYPO3 project. The TYPO3 project is
@@ -245,6 +245,7 @@ class t3lib_htmlmail {
         * @return      void
         */
        public function t3lib_htmlmail() {
+               t3lib_div::logDeprecatedFunction();
                $this->forceReturnPath = $GLOBALS['TYPO3_CONF_VARS']['SYS']['forceReturnPath'];
 
                $this->mailer = 'TYPO3';
@@ -749,7 +750,7 @@ class t3lib_htmlmail {
                                        $this->from_email,
                                        $theParts[0],
                                        $theParts[1],
-                                       'From: ' . $recipient,
+                                       'From: ' . $recipient . $this->linebreak . $this->plain_text_header,
                                        $returnPath
                                );
                        } else {
@@ -757,7 +758,7 @@ class t3lib_htmlmail {
                                        $this->from_email,
                                        $theParts[0],
                                        $theParts[1],
-                                       'From: ' . $recipient
+                                       'From: ' . $recipient . $this->linebreak . $this->plain_text_header
                                );
                        }
                }