rferrero Posted March 6, 2013 Share Posted March 6, 2013 (edited) Hola, Quiero enviar un archivo adjunto en la alerta del nuevo pedido, veo en la clase mailalerts.php esta la funcion send, veo que hay un parametro que essta a null que es donde tengo que meter la variable $file_attachment @param array $file_attachment Array with three parameters (content, mime and name). You can use an array of array to attach multiple files que tengo que meter en el array? me podeis dar algun ejemplo del content y del mime, el name lleva la ruta del fichero? Mail::Send( $id_lang, $template, sprintf(Mail::l('New order - #%06d', $id_lang), $order->id), $template_vars, explode(self::__MA_MAIL_DELIMITOR__, $this->_merchant_mails), null, $configuration['PS_SHOP_EMAIL'], $configuration['PS_SHOP_NAME'], null, null, dirname(__FILE__).'/mails/') Edited March 6, 2013 by rferrero (see edit history) Link to comment Share on other sites More sharing options...
rferrero Posted March 6, 2013 Author Share Posted March 6, 2013 SOLUCIONADO: $file_attachment = array('content'=>'prueba','mime'=>'text/plain','name'=>'prueba.txt'); Link to comment Share on other sites More sharing options...
Recommended Posts