Send PDF in Annex mPDF, phpmailer

1

I have the following code in PHP:

error_reporting(E_ALL ^ E_DEPRECATED);
$this->load->helper('mpdf');
$this->data['dadosboleto'] = $this->boleto_model->GerarBoletoCEF($id_cliente, $data_inicial, $data_final);
$this->data['view'] = 'boleto/boleto';
$html = $this->load->view('boleto/boleto_impressao', $this->data, true);
pdf_create($html, 'boleto_'.$id_cliente."_". date('d-m-Y'), true);

I need instead of generating and forcing the download of the PDF (boleto), I would like to send this attached ticket to an email. Just do not know how to turn it into file, sending I know how to develop.

    
asked by anonymous 18.06.2016 / 22:07

0 answers