$attach = array();
if (intval(Configuration::get('PS_INVOICE')) AND $order->invoice_number)
{
$attach['content'] = PDF::invoice($order, 'S');
$attach['name'] = Configuration::get('PS_INVOICE_PREFIX', intval($order->id_lang)).sprintf('%06d', $order->invoice_number).'.pdf';
$attach['mime'] = 'application/pdf';
} else {
$attach = NULL;
}
Mail::send(......
.png.022b5452a8f28f552bc9430097a16da2.png)