2012-10-29 58 views

回答

4

它的工作原理與手冊中所描述的一樣,只是爲數組添加更多路徑。

http://book.cakephp.org/1.3/view/1638/Attachments

$this->Email->attachments = array(
    $Path . $fileName, 
    $Path . $someOtherFile 
); 
+0

坦克了很多。爲您的參考。我使用了 'code' $ this-> Email-> attachments = array($ this-> data ['form'] ['file0'] ['name'] => $ this-> data ['form'] [ 'file0'] [ 'tmp_name的值'],$這 - >數據[ '形式'] [ '文件1'] [ '名稱'] => $這 - >數據[ '形式'] [ '文件1'] [」 tmp_name的值']); 'code' 謝謝 –