Jump to content

(Solucionado) Enviar Archivo Adjunto En Mailalerts "nuevo Pedido"


rferrero

Recommended Posts

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 by rferrero (see edit history)
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...