mail/xaradminapi/send*mail.php passing attachments to private function

Simon Wunderlin <[email protected]> Sat, 21 May 2005 14:56:04 +0200
Newsgroups gmane.comp.cms.xaraya.patches
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------060602030108050204050402
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

in xaraya 0.9.13 there is a bug which prevents sending attachments. 
xaradminapi/send*mail.php do not pass the parammeters to the private 
function xaradminapi/_sendmail.php and the attachment info is lost.

the attached aptches are created against xar-0.9.13 full tgz, the files 
seem not changed in 1.0 RC2 however.

Regards,
Simon


--------------060602030108050204050402
Content-Type: text/plain;
 name="sendmail.php-0.9.13-full.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="sendmail.php-0.9.13-full.diff"

--- sendmail.php.dist	Sat May 21 14:45:28 2005
+++ sendmail.php	Sat May 21 14:48:10 2005
@@ -160,9 +160,11 @@
                   'wordwrap'      => $wordwrap,
                   'from'          => $from,
                   'fromname'      => $fromname,
+                  'attachName'    => (!isset($attachName) ? NULL : $attachName),
+                  'attachPath'    => (!isset($attachPath) ? NULL : $attachPath),
                   'usetemplates'  => $usetemplates,
                   'htmlmail'      => false));
-    }
+   }
 }
 
 ?>

--------------060602030108050204050402
Content-Type: text/plain;
 name="sendhtmlmail.php-0.9.13-full.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="sendhtmlmail.php-0.9.13-full.diff"

--- sendhtmlmail.php.dist	Sat May 21 14:50:44 2005
+++ sendhtmlmail.php	Sat May 21 14:50:45 2005
@@ -167,6 +167,8 @@
               'wordwrap'      => $wordwrap,
               'from'          => $from,
               'fromname'      => $fromname,
+              'attachName'    => (!isset($attachName) ? NULL : $attachName),
+              'attachPath'    => (!isset($attachPath) ? NULL : $attachPath),
               'usetemplates'  => $usetemplates,
               'htmlmail'      => true));
 }

--------------060602030108050204050402
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Xaraya_patches mailing list
[email protected]
http://xaraya.com/mailman/listinfo/xaraya_patches

--------------060602030108050204050402--