Fixed bug 1197, and added a new header to the email: Errors-To.
authorJan-Erik Revsbech <jer@moccompany.com>
Wed, 6 Jul 2005 13:03:48 +0000 (13:03 +0000)
committerJan-Erik Revsbech <jer@moccompany.com>
Wed, 6 Jul 2005 13:03:48 +0000 (13:03 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@775 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_htmlmail.php

index ed1da76..68aecc9 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-07-06  Jan-Erik Revsbech  <jer@moccompany.com>
+       * Fixed bug #1197. t3lib_htmlmail looked for config variable enableReturnPath, but the variable was named forceReturnPath.
+       * Added a new header Errors-To which is used by Postfix.
+
 2005-07-02  Michael Stucki  <michael@typo3.org>
 
        * Removed misc/mod_rewrite.htaccess and misc/php_optimized.htaccess and replaced them by misc/simple.htaccess and misc/advanced.htaccess
index 4270348..45f3a1e 100755 (executable)
@@ -253,7 +253,7 @@ class t3lib_htmlmail {
         * @return      [type]          ...
         */
        function t3lib_htmlmail () {
-               $this->forceReturnPath = $GLOBALS['TYPO3_CONF_VARS']['SYS']['enableReturnPath'];
+               $this->forceReturnPath = $GLOBALS['TYPO3_CONF_VARS']['SYS']['forceReturnPath'];
        }
 
        /**
@@ -393,6 +393,7 @@ class t3lib_htmlmail {
                        // Return path
                if ($this->returnPath)  {
                        $this->add_header("Return-Path: ".$this->returnPath);
+                       $this->add_header("Errors-To: ".$this->returnPath);
                }
                        // X-id
                if ($this->Xid) {