Added support for other transfer-encodings than base64 in direct mail.
authorJan-Erik Revsbech <jer@moccompany.com>
Sat, 24 Jul 2004 16:29:47 +0000 (16:29 +0000)
committerJan-Erik Revsbech <jer@moccompany.com>
Sat, 24 Jul 2004 16:29:47 +0000 (16:29 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@418 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_dmailer.php

index fd3837e..d6d454c 100755 (executable)
@@ -96,7 +96,10 @@ class t3lib_dmailer extends t3lib_htmlmail {
         */
        function dmailer_prepare($row)  {
                $sys_dmail_uid = $row['uid'];
-               $this->useBase64();
+               print "TEST: ".$row["encoding"]."<br />";
+               if($row["encoding"] == "base64") {                        
+                 $this->useBase64();
+               }
                $this->theParts = unserialize($row['mailContent']);
                $this->messageid = $this->theParts['messageid'];
                $this->subject = $row['subject'];
@@ -214,6 +217,7 @@ class t3lib_dmailer extends t3lib_htmlmail {
         * @return      [type]          ...
         */
        function dmailer_sendSimple($addressList)       {
+               $this->useBase64();
                if ($this->theParts['html']['content'])         {
                        $this->theParts['html']['content'] = $this->encodeMsg($this->dmailer_getBoundaryParts($this->dmailer['boundaryParts_html'],-1));
                } else $this->theParts['html']['content'] = '';