Added Feature #13439: [FEATURE] Allow marker for Subject and Message in auto-response...
authorSteffen Kamper <info@sk-typo3.de>
Wed, 14 Apr 2010 00:04:29 +0000 (00:04 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Wed, 14 Apr 2010 00:04:29 +0000 (00:04 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7360 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_htmlmail.php

index b488ef7..5ce58f5 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -36,6 +36,7 @@
 
 2010-04-13  Steffen Kamper  <info@sk-typo3.de>
 
+       * Added Feature #13439: [FEATURE] Allow marker for Subject and Message in auto-response-message of Mailform
        * Fixed bug #14097: Preview in BE opens Workspace-preview
        * Fixed bug #14100: ModuleMenu is too small
        * Added Feature #13940 Added marker in CONTENT object (thanks to Jigal van Hemert)
index 1d134f7..21b8a54 100644 (file)
@@ -749,7 +749,9 @@ class t3lib_htmlmail {
                        // Auto response
                if ($this->auto_respond_msg) {
                        $theParts = explode('/',$this->auto_respond_msg,2);
+                       $theParts[0] = str_replace('###SUBJECT###', $this->subject, $theParts[0]);
                        $theParts[1] = str_replace("/",LF,$theParts[1]);
+                       $theParts[1] = str_replace("###MESSAGE###", $this->getContent('plain'), $theParts[1]);                  
                        if ($returnPathPossible) {
                                $mailWasSent = t3lib_utility_Mail::mail($this->from_email,
                                        $theParts[0],