More sophistical solution to avoid invoice attachment in email probleme
open
app/controllers/client_invoices.php
if view function change
$this->InvoiceDelivery->downloadInvoices(array($invoice->id));
to
$this->InvoiceDelivery->streamInvoices(array($invoice->id));
in components/invoice_delivery/invoice_delivery.php
under downloadInvoices() add the fallowing function
public function streamInvoices(array $invoice_ids, array $options = null) {
$invoices = $this->getInvoices($invoice_ids, true);
$this->buildInvoices($invoices, true, $options)->stream();
}
this will save the email attachement invoice in pdf .